rocminfo: Fix comparison to None (#313)

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.

Author: Eisuke Kawashima <e-kwsm@users.noreply.github.com>
Esse commit está contido em:
David Yat Sin
2025-08-12 17:14:49 -04:00
commit de GitHub
commit a80c19285e
+1 -1
Ver Arquivo
@@ -117,7 +117,7 @@ def readFromTargetLstFile():
# locate target.lst using environment variable or
# it should be placed at the same directory with this script
target_lst_path = os.environ.get("ROCM_TARGET_LST");
if target_lst_path == None:
if target_lst_path is None:
target_lst_path = os.path.join(CWD, "target.lst")
if os.path.isfile(target_lst_path):
target_lst_file = open(target_lst_path, 'r')