summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-05-12 20:24:22 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-05-12 20:24:22 (GMT)
commit16cabc0a3df7c7bebc7041f007f325d90482814b (patch)
treea67b00b1e7c6e57e0b42bec4e10d4a8d1ca95b9c /Objects
parente9d7f0779d44c355f406f4da58fdda4f7aee7442 (diff)
downloadcpython-16cabc0a3df7c7bebc7041f007f325d90482814b.zip
cpython-16cabc0a3df7c7bebc7041f007f325d90482814b.tar.gz
cpython-16cabc0a3df7c7bebc7041f007f325d90482814b.tar.bz2
Repair "module has no attribute xxx" error msg; bug introduced when
switching from tp_getattr to tp_getattro.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/moduleobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/moduleobject.c b/Objects/moduleobject.c
index 6628fe9..7df5ce0 100644
--- a/Objects/moduleobject.c
+++ b/Objects/moduleobject.c
@@ -180,7 +180,7 @@ module_getattro(PyModuleObject *m, PyObject *name)
}
PyErr_Format(PyExc_AttributeError,
"'%.50s' module has no attribute '%.400s'",
- modname, name);
+ modname, sname);
}
else
Py_INCREF(res);