aboutsummaryrefslogtreecommitdiff
path: root/nptl
diff options
context:
space:
mode:
authorKonstantin Kharlamov <Hi-Angel@yandex.ru>2024-02-18 23:02:34 +0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2024-02-23 08:50:00 -0300
commitfe00366b63c5cf1a84864647ec4e15721c04ebcf (patch)
tree988a87d8f7d10f98071df3dabbb6587f18bb96a6 /nptl
parent1e9a550ba41a5453c6578bb748fe2223a87e3024 (diff)
downloadglibc-fe00366b63c5cf1a84864647ec4e15721c04ebcf.zip
glibc-fe00366b63c5cf1a84864647ec4e15721c04ebcf.tar.gz
glibc-fe00366b63c5cf1a84864647ec4e15721c04ebcf.tar.bz2
treewide: python-scripts: use `is None` for none-equality
Testing for `None`-ness with `==` operator is frowned upon and causes warnings in at least "LGTM" python linter. Fix that. Signed-off-by: Konstantin Kharlamov <Hi-Angel@yandex.ru> Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'nptl')
-rw-r--r--nptl/nptl-printers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nptl/nptl-printers.py b/nptl/nptl-printers.py
index 41d1a76..fc9d39d 100644
--- a/nptl/nptl-printers.py
+++ b/nptl/nptl-printers.py
@@ -587,7 +587,7 @@ def register(objfile):
printer.add_printer('pthread_rwlockattr_t', r'^pthread_rwlockattr_t$',
RWLockAttributesPrinter)
- if objfile == None:
+ if objfile is None:
objfile = gdb
gdb.printing.register_pretty_printer(objfile, printer)