Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b0eb5da

Browse files
committed
Remove unused code that would raise a NameError.
1 parent 49b31d0 commit b0eb5da

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

Tools/gdb/libpython.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555

5656
Py_TPFLAGS_HEAPTYPE = (1L << 9)
5757

58-
Py_TPFLAGS_INT_SUBCLASS = (1L << 23)
5958
Py_TPFLAGS_LONG_SUBCLASS = (1L << 24)
6059
Py_TPFLAGS_LIST_SUBCLASS = (1L << 25)
6160
Py_TPFLAGS_TUPLE_SUBCLASS = (1L << 26)
@@ -312,8 +311,6 @@ def subclass_from_type(cls, t):
312311
if tp_flags & Py_TPFLAGS_HEAPTYPE:
313312
return HeapTypeObjectPtr
314313

315-
if tp_flags & Py_TPFLAGS_INT_SUBCLASS:
316-
return PyIntObjectPtr
317314
if tp_flags & Py_TPFLAGS_LONG_SUBCLASS:
318315
return PyLongObjectPtr
319316
if tp_flags & Py_TPFLAGS_LIST_SUBCLASS:

0 commit comments

Comments
 (0)