From a80c19285eea56357f7b44f94b041113263abc9d Mon Sep 17 00:00:00 2001 From: David Yat Sin <77975354+dayatsin-amd@users.noreply.github.com> Date: Tue, 12 Aug 2025 17:14:49 -0400 Subject: [PATCH] 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 --- projects/rocminfo/rocm_agent_enumerator | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/rocminfo/rocm_agent_enumerator b/projects/rocminfo/rocm_agent_enumerator index 8116304d8e..d527a110f2 100755 --- a/projects/rocminfo/rocm_agent_enumerator +++ b/projects/rocminfo/rocm_agent_enumerator @@ -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')