Skip to content

Commit 7c8a8bd

Browse files
authored
[clang-tidy] fix(clang-tools-extra/**.py): fix comparison to None (#94013)
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.
1 parent 77f75b4 commit 7c8a8bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang-tools-extra/docs/clang-tidy/checks/gen-static-analyzer-docs.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def get_checkers(checkers_td, checkers_rst):
4747
parent_package_ = package["ParentPackage"]
4848
hidden = (checker["Hidden"] != 0) or (package["Hidden"] != 0)
4949

50-
while parent_package_ != None:
50+
while parent_package_ is not None:
5151
parent_package = table_entries[parent_package_["def"]]
5252
checker_package_prefix = (
5353
parent_package["PackageName"] + "." + checker_package_prefix

0 commit comments

Comments
 (0)