compare singletons by identity not equality (closes #16712)

Patch from Serhiy Storchaka.
This commit is contained in:
Benjamin Peterson 2012-10-09 11:16:03 -04:00
parent a511935151
commit b29614e047
9 changed files with 15 additions and 15 deletions

View file

@ -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