summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2005-10-11 20:26:05 (GMT)
committerFred Drake <fdrake@acm.org>2005-10-11 20:26:05 (GMT)
commit34fed3a3b7f689ae40a13232f5c42ac8ad1a9738 (patch)
treeb8034e0c552a28e58f06556c833cc3bfc8d3d69c
parentb79350601bc3faea4ca97d537ba887810daf0ba0 (diff)
downloadcpython-34fed3a3b7f689ae40a13232f5c42ac8ad1a9738.zip
cpython-34fed3a3b7f689ae40a13232f5c42ac8ad1a9738.tar.gz
cpython-34fed3a3b7f689ae40a13232f5c42ac8ad1a9738.tar.bz2
fix stupid typo
-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 66e97c0..ff74290 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_GetAttrString(pModule, argv[2]);
+ pFunc = PyDict_GetItemString(pModule, argv[2]);
/* pFunc is a new reference */
if (pFunc && PyCallable_Check(pFunc)) {