ports/www/py-flup6/files/patch-flup_server_ajp__base.py
Li-Wen Hsu c889c66fce - Change to flup6, a fork supports py3k
- Pass maintainership to submitter

PR:		224332
Submitted by:	Shane <FreeBSD@ShaneWare.Biz>
2017-12-26 18:33:18 +00:00

15 lines
314 B
Python

--- 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']