From 34fed3a3b7f689ae40a13232f5c42ac8ad1a9738 Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Tue, 11 Oct 2005 20:26:05 +0000 Subject: fix stupid typo --- Doc/ext/run-func.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) { -- cgit v0.12