]> granicus.if.org Git - python/commitdiff
fix stupid typo
authorFred Drake <fdrake@acm.org>
Tue, 11 Oct 2005 20:26:05 +0000 (20:26 +0000)
committerFred Drake <fdrake@acm.org>
Tue, 11 Oct 2005 20:26:05 +0000 (20:26 +0000)
Doc/ext/run-func.c

index 66e97c0aa6943ca4cae121fdde1a339b44d1c816..ff742907955327017ce1f3b2be074a1be848b41f 100644 (file)
@@ -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)) {