From: Georg Brandl Date: Tue, 12 Jul 2005 13:20:56 +0000 (+0000) Subject: Oops. X-Git-Tag: v2.4.2c1~138 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5f421a74c8f5d82381dc8486f6cb259278191fe8;p=thirdparty%2FPython%2Fcpython.git Oops. --- diff --git a/Doc/ext/run-func.c b/Doc/ext/run-func.c index ff7429079553..66e97c0aa694 100644 --- a/Doc/ext/run-func.c +++ b/Doc/ext/run-func.c @@ -20,7 +20,7 @@ main(int argc, char *argv[]) Py_DECREF(pName); if (pModule != NULL) { - pFunc = PyDict_GetItemString(pModule, argv[2]); + pFunc = PyDict_GetAttrString(pModule, argv[2]); /* pFunc is a new reference */ if (pFunc && PyCallable_Check(pFunc)) {