Use renamed threading event API in Python 3.3

Refs #19038.
This commit is contained in:
Ian Clelland 2012-10-10 19:57:16 +02:00 committed by Claude Paroz
parent dcdaf9a079
commit f7b69665fd
1 changed files with 3 additions and 1 deletions

View File

@ -867,7 +867,9 @@ class QuietWSGIRequestHandler(WSGIRequestHandler):
pass
if sys.version_info >= (2, 7, 0):
if sys.version_info >= (3, 3, 0):
_ImprovedEvent = threading.Event
elif sys.version_info >= (2, 7, 0):
_ImprovedEvent = threading._Event
else:
class _ImprovedEvent(threading._Event):