summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
Diffstat (limited to 'Doc')
-rw-r--r--Doc/ext/run-func.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/ext/run-func.c b/Doc/ext/run-func.c
index ff74290..5a7df0d 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)) {