mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
[2.7] bpo-34234: Use _PyAnyInt_Check() and _PyAnyInt_CheckExact(). (GH-8479)
This commit is contained in:
@@ -4504,7 +4504,7 @@ PyString_Format(PyObject *format, PyObject *args)
|
||||
if (PyNumber_Check(v)) {
|
||||
PyObject *iobj=NULL;
|
||||
|
||||
if (PyInt_Check(v) || (PyLong_Check(v))) {
|
||||
if (_PyAnyInt_Check(v)) {
|
||||
iobj = v;
|
||||
Py_INCREF(iobj);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user