From: Georg Brandl Date: Tue, 12 Jul 2005 13:20:49 +0000 (+0000) Subject: Oops. X-Git-Tag: v2.5a0~1597 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b9ab7a584dd6eef16661c9a8689a947de4c50e5d;p=python Oops. --- diff --git a/Doc/ext/run-func.c b/Doc/ext/run-func.c index ff74290795..66e97c0aa6 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)) {