diff Objects/moduleobject.c @ 17811:222767eb28f7 legacy-trunk

Repair "module has no attribute xxx" error msg; bug introduced when switching from tp_getattr to tp_getattro.
author Tim Peters <tim.peters@gmail.com>
date Sat, 12 May 2001 20:24:22 +0000
parents 1579d309676e
children 09df3254b49d
line wrap: on
line diff
--- a/Objects/moduleobject.c	Sat May 12 12:30:04 2001 +0000
+++ b/Objects/moduleobject.c	Sat May 12 20:24:22 2001 +0000
@@ -180,7 +180,7 @@
 		}
 		PyErr_Format(PyExc_AttributeError,
 			     "'%.50s' module has no attribute '%.400s'",
-			     modname, name);
+			     modname, sname);
 	}
 	else
 		Py_INCREF(res);