diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2018-07-31 06:09:36 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-31 06:09:36 (GMT) |
commit | 48c8bf21f97aeb124dbd48bf2bdec1ab4ebc5202 (patch) | |
tree | 6678ae7f56e368ef192b8e0f5988f7c317dbb246 /Objects/codeobject.c | |
parent | dc9039da239ee572eaaf56e4a026be1fc4d74e24 (diff) | |
download | cpython-48c8bf21f97aeb124dbd48bf2bdec1ab4ebc5202.zip cpython-48c8bf21f97aeb124dbd48bf2bdec1ab4ebc5202.tar.gz cpython-48c8bf21f97aeb124dbd48bf2bdec1ab4ebc5202.tar.bz2 |
[2.7] bpo-34234: Use _PyAnyInt_Check() and _PyAnyInt_CheckExact(). (GH-8479)
Diffstat (limited to 'Objects/codeobject.c')
-rw-r--r-- | Objects/codeobject.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Objects/codeobject.c b/Objects/codeobject.c index a66aa69..d50e4c6 100644 --- a/Objects/codeobject.c +++ b/Objects/codeobject.c @@ -423,10 +423,9 @@ _PyCode_ConstantKey(PyObject *op) /* Py_None is a singleton */ if (op == Py_None - || PyInt_CheckExact(op) - || PyLong_CheckExact(op) - || PyBool_Check(op) - || PyBytes_CheckExact(op) + || _PyAnyInt_CheckExact(op) + || PyBool_Check(op) + || PyBytes_CheckExact(op) #ifdef Py_USING_UNICODE || PyUnicode_CheckExact(op) #endif |