summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2006-02-15 06:56:35 (GMT)
committerFred Drake <fdrake@acm.org>2006-02-15 06:56:35 (GMT)
commit222a704100fe744eb0e3bf158825a10f42285215 (patch)
tree51a9044b23e0c9ca07a0a3ccd925e6f1de9e4d26
parentd577b6dbe35d2fa77798fa7728cb4e90d251ede8 (diff)
downloadcpython-222a704100fe744eb0e3bf158825a10f42285215.zip
cpython-222a704100fe744eb0e3bf158825a10f42285215.tar.gz
cpython-222a704100fe744eb0e3bf158825a10f42285215.tar.bz2
use correct function in example (backport of trunk revision 42377)
-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)) {