Skip to content

Commit

Permalink
use correct function in example
Browse files Browse the repository at this point in the history
  • Loading branch information
freddrake committed Feb 15, 2006
1 parent 7941552 commit 4482929
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/ext/run-func.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ main(int argc, char *argv[])
Py_DECREF(pName);

if (pModule != NULL) {
pFunc = PyDict_GetItemString(pModule, argv[2]);
pFunc = PyObject_GetAttrString(pModule, argv[2]);
/* pFunc is a new reference */

if (pFunc && PyCallable_Check(pFunc)) {
Expand Down

0 comments on commit 4482929

Please sign in to comment.