summaryrefslogtreecommitdiff
path: root/src/server/wsgi_python.h
diff options
context:
space:
mode:
authorGraham Dumpleton <Graham.Dumpleton@gmail.com>2021-02-13 11:05:39 +1100
committerGraham Dumpleton <Graham.Dumpleton@gmail.com>2021-02-13 11:05:39 +1100
commit2c9d1b3e725ad2a072e9fef4cb1cb0bb9ae2d540 (patch)
tree1d17709e6bfd590e30349a0f7fc2d8e3dd749fa1 /src/server/wsgi_python.h
parent5ef398918194817b8d86650d0a3b64fedefdf291 (diff)
downloadmod_wsgi-2c9d1b3e725ad2a072e9fef4cb1cb0bb9ae2d540.tar.gz
Fix deprecation warning in PyArg_ParseTuple().
Diffstat (limited to 'src/server/wsgi_python.h')
-rw-r--r--src/server/wsgi_python.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/server/wsgi_python.h b/src/server/wsgi_python.h
index 0464fe6..5c10cae 100644
--- a/src/server/wsgi_python.h
+++ b/src/server/wsgi_python.h
@@ -21,6 +21,8 @@
/* ------------------------------------------------------------------------- */
+#define PY_SSIZE_T_CLEAN 1
+
#include <Python.h>
#if !defined(PY_VERSION_HEX)