From cf95f9cacbbd8706537e75613690bb6d5997eef3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Tue, 18 Sep 2001 20:23:28 +0000 Subject: Properly repr classes without module names. --- Objects/classobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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("", name, op); + return PyString_FromFormat("", name, op); else return PyString_FromFormat("", PyString_AsString(mod), -- cgit v0.12