This commit is contained in:
Benjamin Peterson 2013-01-02 12:25:15 -06:00
parent b7ee47b4b7
commit 8f53ded1ee
1 changed files with 3 additions and 3 deletions

View File

@ -4490,9 +4490,9 @@ PyString_Format(PyObject *format, PyObject *args)
else {
iobj = PyNumber_Int(v);
if (iobj==NULL) {
PyErr_Clear();
iobj = PyNumber_Long(v);
}
PyErr_Clear();
iobj = PyNumber_Long(v);
}
}
if (iobj!=NULL) {
if (PyInt_Check(iobj)) {