mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Remove unused code that would raise a NameError.
This commit is contained in:
parent
49b31d0a0b
commit
b0eb5da018
1 changed files with 0 additions and 3 deletions
|
@ -55,7 +55,6 @@ SIZEOF_VOID_P = _type_void_ptr.sizeof
|
||||||
|
|
||||||
Py_TPFLAGS_HEAPTYPE = (1L << 9)
|
Py_TPFLAGS_HEAPTYPE = (1L << 9)
|
||||||
|
|
||||||
Py_TPFLAGS_INT_SUBCLASS = (1L << 23)
|
|
||||||
Py_TPFLAGS_LONG_SUBCLASS = (1L << 24)
|
Py_TPFLAGS_LONG_SUBCLASS = (1L << 24)
|
||||||
Py_TPFLAGS_LIST_SUBCLASS = (1L << 25)
|
Py_TPFLAGS_LIST_SUBCLASS = (1L << 25)
|
||||||
Py_TPFLAGS_TUPLE_SUBCLASS = (1L << 26)
|
Py_TPFLAGS_TUPLE_SUBCLASS = (1L << 26)
|
||||||
|
@ -312,8 +311,6 @@ class PyObjectPtr(object):
|
||||||
if tp_flags & Py_TPFLAGS_HEAPTYPE:
|
if tp_flags & Py_TPFLAGS_HEAPTYPE:
|
||||||
return HeapTypeObjectPtr
|
return HeapTypeObjectPtr
|
||||||
|
|
||||||
if tp_flags & Py_TPFLAGS_INT_SUBCLASS:
|
|
||||||
return PyIntObjectPtr
|
|
||||||
if tp_flags & Py_TPFLAGS_LONG_SUBCLASS:
|
if tp_flags & Py_TPFLAGS_LONG_SUBCLASS:
|
||||||
return PyLongObjectPtr
|
return PyLongObjectPtr
|
||||||
if tp_flags & Py_TPFLAGS_LIST_SUBCLASS:
|
if tp_flags & Py_TPFLAGS_LIST_SUBCLASS:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue