summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGraham Dumpleton <Graham.Dumpleton@gmail.com>2021-06-18 13:08:34 +1000
committerGraham Dumpleton <Graham.Dumpleton@gmail.com>2021-06-18 13:08:34 +1000
commitcda74aff3975794242bbd6533a59264ea06954ac (patch)
tree19fd3896acd67480f7244650e74eb0d43b971e53 /src
parent464d593643ddd9ffd541aca22d1b84080e408a11 (diff)
downloadmod_wsgi-cda74aff3975794242bbd6533a59264ea06954ac.tar.gz
Wrong import function used.
Diffstat (limited to 'src')
-rw-r--r--src/server/mod_wsgi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/mod_wsgi.c b/src/server/mod_wsgi.c
index 9ebd685..310ccac 100644
--- a/src/server/mod_wsgi.c
+++ b/src/server/mod_wsgi.c
@@ -3650,7 +3650,7 @@ static PyObject *wsgi_load_source(apr_pool_t *pool, request_rec *r,
PyObject *result = NULL;
char *source_buf = NULL;
- io_module = PyImport_AddModule("io");
+ io_module = PyImport_ImportModule("io");
if (!io_module) {
goto load_source_finally;
}