From 622ed620b9a393e4872d61a722fa22c35ee20cde Mon Sep 17 00:00:00 2001 From: "roberto@debian32" Date: Sat, 21 May 2011 08:03:22 +0200 Subject: [PATCH] fixed python 3.1 --- plugins/python/uwsgi_python.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/python/uwsgi_python.h b/plugins/python/uwsgi_python.h index 4bc4c750..cd778ad5 100644 --- a/plugins/python/uwsgi_python.h +++ b/plugins/python/uwsgi_python.h @@ -22,6 +22,10 @@ #define HAS_NOT_PyFrame_GetLineNumber #endif +#if PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION < 2 +#define HAS_NOT_PyFrame_GetLineNumber +#endif + #if PY_MAJOR_VERSION > 2 #define PYTHREE #endif