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:
@@ -1136,7 +1136,7 @@ handle_system_exit(void)
|
||||
/* If we failed to dig out the 'code' attribute,
|
||||
just let the else clause below print the error. */
|
||||
}
|
||||
if (PyInt_Check(value) || PyLong_Check(value))
|
||||
if (_PyAnyInt_Check(value))
|
||||
exitcode = (int)PyInt_AsLong(value);
|
||||
else {
|
||||
PyObject *sys_stderr = PySys_GetObject("stderr");
|
||||
|
||||
Reference in New Issue
Block a user