mirror of https://github.com/django/django.git
[py3] Avoided relying on 2.x-only internals
in LiveServerTestCase.
This commit is contained in:
parent
e98cb05edf
commit
688678e7c0
|
@ -917,7 +917,10 @@ class QuietWSGIRequestHandler(WSGIRequestHandler):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class _ImprovedEvent(threading._Event):
|
if sys.version_info >= (2, 6, 0):
|
||||||
|
_ImprovedEvent = threading._Event
|
||||||
|
else:
|
||||||
|
class _ImprovedEvent(threading._Event):
|
||||||
"""
|
"""
|
||||||
Does the same as `threading.Event` except it overrides the wait() method
|
Does the same as `threading.Event` except it overrides the wait() method
|
||||||
with some code borrowed from Python 2.7 to return the set state of the
|
with some code borrowed from Python 2.7 to return the set state of the
|
||||||
|
|
Loading…
Reference in New Issue