Commit 5d63cabe authored by Christian Heimes's avatar Christian Heimes

merge

parents 8f68100d 84712487
......@@ -2984,8 +2984,10 @@ object_repr(PyObject *self)
mod = NULL;
}
name = type_name(type, NULL);
if (name == NULL)
if (name == NULL) {
Py_XDECREF(mod);
return NULL;
}
if (mod != NULL && strcmp(PyString_AS_STRING(mod), "__builtin__"))
rtn = PyString_FromFormat("<%s.%s object at %p>",
PyString_AS_STRING(mod),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment