[Python-checkins] r82873 - python/branches/py3k/Tools/gdb/libpython.py
georg.brandl
python-checkins at python.org
Wed Jul 14 10:53:37 CEST 2010
Author: georg.brandl
Date: Wed Jul 14 10:53:36 2010
New Revision: 82873
Log:
Remove unused code that would raise a NameError.
Modified:
python/branches/py3k/Tools/gdb/libpython.py
Modified: python/branches/py3k/Tools/gdb/libpython.py
==============================================================================
--- python/branches/py3k/Tools/gdb/libpython.py (original)
+++ python/branches/py3k/Tools/gdb/libpython.py Wed Jul 14 10:53:36 2010
@@ -55,7 +55,6 @@
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 @@
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:
More information about the Python-checkins
mailing list