diff options
author | Benjamin Peterson <benjamin@python.org> | 2012-10-09 15:16:03 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2012-10-09 15:16:03 (GMT) |
commit | b29614e047110f4d9af993a6cdec4e3fb7ef9738 (patch) | |
tree | a15a5ac7b508c5033f640123f498a322f44b04ce /Tools/gdb | |
parent | a5119351519926971240f61d0c23a5fc5d00743e (diff) | |
download | cpython-b29614e047110f4d9af993a6cdec4e3fb7ef9738.zip cpython-b29614e047110f4d9af993a6cdec4e3fb7ef9738.tar.gz cpython-b29614e047110f4d9af993a6cdec4e3fb7ef9738.tar.bz2 |
compare singletons by identity not equality (closes #16712)
Patch from Serhiy Storchaka.
Diffstat (limited to 'Tools/gdb')
-rw-r--r-- | Tools/gdb/libpython.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/gdb/libpython.py b/Tools/gdb/libpython.py index 2cdc3da..368a7d5 100644 --- a/Tools/gdb/libpython.py +++ b/Tools/gdb/libpython.py @@ -1332,7 +1332,7 @@ that this python file is installed to the same path as the library (or its /usr/lib/debug/usr/lib/libpython2.6.so.1.0.debug-gdb.py """ def register (obj): - if obj == None: + if obj is None: obj = gdb # Wire up the pretty-printer |