From: Fred Drake Date: Wed, 15 Feb 2006 06:56:35 +0000 (+0000) Subject: use correct function in example (backport of trunk revision 42377) X-Git-Tag: v2.4.3c1~81 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=222a704100fe744eb0e3bf158825a10f42285215;p=thirdparty%2FPython%2Fcpython.git use correct function in example (backport of trunk revision 42377) --- diff --git a/Doc/ext/run-func.c b/Doc/ext/run-func.c index ff7429079553..5a7df0d98056 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 = PyObject_GetAttrString(pModule, argv[2]); /* pFunc is a new reference */ if (pFunc && PyCallable_Check(pFunc)) {