mirror of https://github.com/python/cpython
Merged revisions 81712 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r81712 | benjamin.peterson | 2010-06-04 21:07:01 -0500 (Fri, 04 Jun 2010) | 1 line _PyObject_LookupSpecial returns a new reference ........
This commit is contained in:
parent
c03d7571c4
commit
6f889ad32f
|
@ -716,6 +716,7 @@ PyObject_Format(PyObject *obj, PyObject *format_spec)
|
||||||
|
|
||||||
/* And call it. */
|
/* And call it. */
|
||||||
result = PyObject_CallFunctionObjArgs(meth, format_spec, NULL);
|
result = PyObject_CallFunctionObjArgs(meth, format_spec, NULL);
|
||||||
|
Py_DECREF(meth);
|
||||||
|
|
||||||
if (result && !PyUnicode_Check(result)) {
|
if (result && !PyUnicode_Check(result)) {
|
||||||
PyErr_SetString(PyExc_TypeError,
|
PyErr_SetString(PyExc_TypeError,
|
||||||
|
|
Loading…
Reference in New Issue