Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use renamed threading event API in Python 3.3

Refs #19038.
  • Loading branch information...
commit f7b69665fd0ce21adae7cfaed7fade63f8aae1fd 1 parent dcdaf9a
@clelland clelland authored claudep committed
Showing with 3 additions and 1 deletion.
  1. +3 −1 django/test/testcases.py
View
4 django/test/testcases.py
@@ -867,7 +867,9 @@ def log_message(*args):
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):
Please sign in to comment.
Something went wrong with that request. Please try again.