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:
Benjamin Peterson 2010-06-05 02:11:45 +00:00
parent c03d7571c4
commit 6f889ad32f
1 changed files with 1 additions and 0 deletions

View File

@ -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,