Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b9ab7a5

Browse files
committed
Oops.
1 parent 9abfa90 commit b9ab7a5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/ext/run-func.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ main(int argc, char *argv[])
2020
Py_DECREF(pName);
2121

2222
if (pModule != NULL) {
23-
pFunc = PyDict_GetItemString(pModule, argv[2]);
23+
pFunc = PyDict_GetAttrString(pModule, argv[2]);
2424
/* pFunc is a new reference */
2525

2626
if (pFunc && PyCallable_Check(pFunc)) {

0 commit comments

Comments
 (0)