diff options
author | Fred Drake <fdrake@acm.org> | 2006-02-15 06:55:57 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2006-02-15 06:55:57 (GMT) |
commit | 44829297348d9121a03fc7df2fac557b583cc7fa (patch) | |
tree | 14e46066aaef4abf3e7226eeaa44f938b891235a | |
parent | 79415523d6931c3fcfbf88a941acad1707a1aebf (diff) | |
download | cpython-44829297348d9121a03fc7df2fac557b583cc7fa.zip cpython-44829297348d9121a03fc7df2fac557b583cc7fa.tar.gz cpython-44829297348d9121a03fc7df2fac557b583cc7fa.tar.bz2 |
use correct function in example
-rw-r--r-- | Doc/ext/run-func.c | 2 |
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)) { |