diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2001-09-18 20:23:28 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2001-09-18 20:23:28 (GMT) |
commit | cf95f9cacbbd8706537e75613690bb6d5997eef3 (patch) | |
tree | 48396989e4883cc70423461f8a48b57b4bb166ae /Objects/classobject.c | |
parent | 843daa8cad823ffafb217bc7c4b5e3c5ef9ff6c3 (diff) | |
download | cpython-cf95f9cacbbd8706537e75613690bb6d5997eef3.zip cpython-cf95f9cacbbd8706537e75613690bb6d5997eef3.tar.gz cpython-cf95f9cacbbd8706537e75613690bb6d5997eef3.tar.bz2 |
Properly repr classes without module names.
Diffstat (limited to 'Objects/classobject.c')
-rw-r--r-- | Objects/classobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/classobject.c b/Objects/classobject.c index 25a0743..3845dfc 100644 --- a/Objects/classobject.c +++ b/Objects/classobject.c @@ -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), |