fix(python): fix comparison to None (#211)

from PEP8 (https://peps.python.org/pep-0008/#programming-recommendations):

> Comparisons to singletons like None should always be done with is or is not, never the equality operators.

Co-authored-by: Eisuke Kawashima <e-kwsm@users.noreply.github.com>
This commit is contained in:
systems-assistant[bot]
2025-09-10 14:50:32 -05:00
committed by GitHub
parent 39ea16e544
commit bfdb3bc636
3 changed files with 8 additions and 8 deletions
@@ -23,7 +23,7 @@ def initRsmiBindings(silent=False):
print(args)
rocm_smi_lib_path = os.getenv('ROCM_SMI_LIB_PATH')
if (rocm_smi_lib_path != None):
if (rocm_smi_lib_path is not None):
path_librocm = rocm_smi_lib_path
else:
path_librocm = os.path.dirname(os.path.realpath(__file__)) + '/../../@CMAKE_INSTALL_LIBDIR@/librocm_smi64.so.@VERSION_MAJOR@'