This commit is contained in:
Georg Brandl 2005-07-12 13:20:49 +00:00
parent 9abfa90a6d
commit b9ab7a584d
1 changed files with 1 additions and 1 deletions

View 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)) {