]> granicus.if.org Git - python/commitdiff
Oops.
authorGeorg Brandl <georg@python.org>
Tue, 12 Jul 2005 13:20:49 +0000 (13:20 +0000)
committerGeorg Brandl <georg@python.org>
Tue, 12 Jul 2005 13:20:49 +0000 (13:20 +0000)
Doc/ext/run-func.c

index ff742907955327017ce1f3b2be074a1be848b41f..66e97c0aa6943ca4cae121fdde1a339b44d1c816 100644 (file)
@@ -20,7 +20,7 @@ main(int argc, char *argv[])
     Py_DECREF(pName);
 
     if (pModule != NULL) {
-        pFunc = PyDict_GetItemString(pModule, argv[2]);
+        pFunc = PyDict_GetAttrString(pModule, argv[2]);
         /* pFunc is a new reference */
 
         if (pFunc && PyCallable_Check(pFunc)) {