Kaydet (Commit) cf95f9ca authored tarafından Martin v. Löwis's avatar Martin v. Löwis

Properly repr classes without module names.

üst 843daa8c
......@@ -358,7 +358,7 @@ class_repr(PyClassObject *op)
else
name = PyString_AsString(op->cl_name);
if (mod == NULL || !PyString_Check(mod))
return PyString_FromFormat("<class ?.s at %p>", name, op);
return PyString_FromFormat("<class ?.%s at %p>", name, op);
else
return PyString_FromFormat("<class %s.%s at %p>",
PyString_AsString(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