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>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
63f31859e4
Коммит
a80c19285e
@@ -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')
|
||||
|
||||
Ссылка в новой задаче
Block a user