diff options
Diffstat (limited to 'www/ap-python/patches/patch-ac')
-rw-r--r-- | www/ap-python/patches/patch-ac | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/www/ap-python/patches/patch-ac b/www/ap-python/patches/patch-ac new file mode 100644 index 00000000000..a0c037111db --- /dev/null +++ b/www/ap-python/patches/patch-ac @@ -0,0 +1,18 @@ +$NetBSD: patch-ac,v 1.1.1.1 2002/02/05 21:05:58 drochner Exp $ +--- src/mod_python.c.orig Sat Nov 10 13:06:57 2001 ++++ src/mod_python.c Sat Nov 10 13:07:53 2001 +@@ -474,11 +474,13 @@ + + if (! ((m = PyImport_ImportModule(MODULENAME)))) { + fprintf(stderr, "make_obcallback(): could not import %s.\n", MODULENAME); ++ PyErr_Print(); + } + +- if (! ((obCallBack = PyObject_CallMethod(m, INITFUNC, NULL)))) { ++ if (m && ! ((obCallBack = PyObject_CallMethod(m, INITFUNC, NULL)))) { + fprintf(stderr, "make_obcallback(): could not call %s.\n", + INITFUNC); ++ PyErr_Print(); + } + + return obCallBack; |