summaryrefslogtreecommitdiffstats
path: root/Doc/ext/run-func.c
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2006-02-15 06:55:57 (GMT)
committerFred Drake <fdrake@acm.org>2006-02-15 06:55:57 (GMT)
commit44829297348d9121a03fc7df2fac557b583cc7fa (patch)
tree14e46066aaef4abf3e7226eeaa44f938b891235a /Doc/ext/run-func.c
parent79415523d6931c3fcfbf88a941acad1707a1aebf (diff)
downloadcpython-44829297348d9121a03fc7df2fac557b583cc7fa.zip
cpython-44829297348d9121a03fc7df2fac557b583cc7fa.tar.gz
cpython-44829297348d9121a03fc7df2fac557b583cc7fa.tar.bz2
use correct function in example
Diffstat (limited to 'Doc/ext/run-func.c')
-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)) {