summaryrefslogtreecommitdiff
path: root/Doc/ext
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2005-10-11 20:26:05 +0000
committerFred Drake <fdrake@acm.org>2005-10-11 20:26:05 +0000
commitbbf66fec1d69d5d2fdc6f91de767ac825aad7d29 (patch)
treed9b801a59b4c5b1b75804963419f0e60f355123a /Doc/ext
parente47ed22e1b7073e110a1298f82980d0fe1b46ac9 (diff)
downloadcpython-bbf66fec1d69d5d2fdc6f91de767ac825aad7d29.tar.gz
fix stupid typo
Diffstat (limited to 'Doc/ext')
-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 66e97c0aa6..ff74290795 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)) {