aboutsummaryrefslogtreecommitdiff
path: root/www/py-flup6/files/patch-flup_server_ajp__base.py
diff options
context:
space:
mode:
Diffstat (limited to 'www/py-flup6/files/patch-flup_server_ajp__base.py')
-rw-r--r--www/py-flup6/files/patch-flup_server_ajp__base.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/www/py-flup6/files/patch-flup_server_ajp__base.py b/www/py-flup6/files/patch-flup_server_ajp__base.py
new file mode 100644
index 000000000000..a357f5c15ca7
--- /dev/null
+++ b/www/py-flup6/files/patch-flup_server_ajp__base.py
@@ -0,0 +1,15 @@
+--- flup/server/ajp_base.py.orig 2017-12-16 07:40:39 UTC
++++ flup/server/ajp_base.py
+@@ -38,7 +38,11 @@ import datetime
+ import time
+
+ # Unfortunately, for now, threads are required.
+-import thread
++try:
++ import thread
++except:
++ import _thread as thread
++
+ import threading
+
+ __all__ = ['BaseAJPServer']