From 44829297348d9121a03fc7df2fac557b583cc7fa Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Wed, 15 Feb 2006 06:55:57 +0000 Subject: use correct function in example --- Doc/ext/run-func.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ 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)) { -- cgit v0.12