diff options
Diffstat (limited to 'Objects/stringobject.c')
-rw-r--r-- | Objects/stringobject.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Objects/stringobject.c b/Objects/stringobject.c index dcab35e843..c6f2220bbf 100644 --- a/Objects/stringobject.c +++ b/Objects/stringobject.c @@ -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)) { |