commit | 44829297348d9121a03fc7df2fac557b583cc7fa | [log] [tgz] |
---|---|---|
author | Fred Drake <fdrake@acm.org> | Wed Feb 15 06:55:57 2006 +0000 |
committer | Fred Drake <fdrake@acm.org> | Wed Feb 15 06:55:57 2006 +0000 |
tree | 14e46066aaef4abf3e7226eeaa44f938b891235a | |
parent | 79415523d6931c3fcfbf88a941acad1707a1aebf [diff] |
use correct function in example
diff --git a/Doc/ext/run-func.c b/Doc/ext/run-func.c index ff74290..5a7df0d 100644 --- a/Doc/ext/run-func.c +++ b/Doc/ext/run-func.c
@@ -20,7 +20,7 @@ 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)) {