Commit b9ab7a58 authored by Georg Brandl's avatar Georg Brandl

Oops.

parent 9abfa90a
...@@ -20,7 +20,7 @@ main(int argc, char *argv[]) ...@@ -20,7 +20,7 @@ main(int argc, char *argv[])
Py_DECREF(pName); Py_DECREF(pName);
if (pModule != NULL) { if (pModule != NULL) {
pFunc = PyDict_GetItemString(pModule, argv[2]); pFunc = PyDict_GetAttrString(pModule, argv[2]);
/* pFunc is a new reference */ /* pFunc is a new reference */
if (pFunc && PyCallable_Check(pFunc)) { if (pFunc && PyCallable_Check(pFunc)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment