]> granicus.if.org Git - python/commitdiff
Remove unused code that would raise a NameError.
authorGeorg Brandl <georg@python.org>
Wed, 14 Jul 2010 08:53:36 +0000 (08:53 +0000)
committerGeorg Brandl <georg@python.org>
Wed, 14 Jul 2010 08:53:36 +0000 (08:53 +0000)
Tools/gdb/libpython.py

index 6ed608721f25f2d7c1c960d1125fd7bbd2cf9175..0d599811d9fac726c964cb8d20988d976534ced6 100644 (file)
@@ -55,7 +55,6 @@ SIZEOF_VOID_P = _type_void_ptr.sizeof
 
 Py_TPFLAGS_HEAPTYPE = (1L << 9)
 
-Py_TPFLAGS_INT_SUBCLASS      = (1L << 23)
 Py_TPFLAGS_LONG_SUBCLASS     = (1L << 24)
 Py_TPFLAGS_LIST_SUBCLASS     = (1L << 25)
 Py_TPFLAGS_TUPLE_SUBCLASS    = (1L << 26)
@@ -312,8 +311,6 @@ class PyObjectPtr(object):
         if tp_flags & Py_TPFLAGS_HEAPTYPE:
             return HeapTypeObjectPtr
 
-        if tp_flags & Py_TPFLAGS_INT_SUBCLASS:
-            return PyIntObjectPtr
         if tp_flags & Py_TPFLAGS_LONG_SUBCLASS:
             return PyLongObjectPtr
         if tp_flags & Py_TPFLAGS_LIST_SUBCLASS: