diff options
author | Konstantin Kharlamov <Hi-Angel@yandex.ru> | 2024-02-18 23:02:34 +0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2024-02-23 08:50:00 -0300 |
commit | fe00366b63c5cf1a84864647ec4e15721c04ebcf (patch) | |
tree | 988a87d8f7d10f98071df3dabbb6587f18bb96a6 /nptl | |
parent | 1e9a550ba41a5453c6578bb748fe2223a87e3024 (diff) | |
download | glibc-fe00366b63c5cf1a84864647ec4e15721c04ebcf.tar.gz glibc-fe00366b63c5cf1a84864647ec4e15721c04ebcf.tar.xz glibc-fe00366b63c5cf1a84864647ec4e15721c04ebcf.zip |
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.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nptl/nptl-printers.py b/nptl/nptl-printers.py index 41d1a76c65..fc9d39d70c 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) |