From: Fred Drake Date: Tue, 11 Oct 2005 20:26:05 +0000 (+0000) Subject: fix stupid typo X-Git-Tag: v2.5a0~1291 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=34fed3a3b7f689ae40a13232f5c42ac8ad1a9738;p=thirdparty%2FPython%2Fcpython.git fix stupid typo --- diff --git a/Doc/ext/run-func.c b/Doc/ext/run-func.c index 66e97c0aa694..ff7429079553 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_GetAttrString(pModule, argv[2]); + pFunc = PyDict_GetItemString(pModule, argv[2]); /* pFunc is a new reference */ if (pFunc && PyCallable_Check(pFunc)) {