Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Use renamed threading event API in Python 3.3

Refs #19038.
  • Loading branch information...
commit f7b69665fd0ce21adae7cfaed7fade63f8aae1fd 1 parent dcdaf9a
Ian Clelland authored October 10, 2012 claudep committed October 10, 2012

Showing 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. 4  django/test/testcases.py
4  django/test/testcases.py
@@ -867,7 +867,9 @@ def log_message(*args):
867 867
         pass
868 868
 
869 869
 
870  
-if sys.version_info >= (2, 7, 0):
  870
+if sys.version_info >= (3, 3, 0):
  871
+    _ImprovedEvent = threading.Event
  872
+elif sys.version_info >= (2, 7, 0):
871 873
     _ImprovedEvent = threading._Event
872 874
 else:
873 875
     class _ImprovedEvent(threading._Event):

0 notes on commit f7b6966

Please sign in to comment.
Something went wrong with that request. Please try again.