Commit 688678e7 authored by Aymeric Augustin's avatar Aymeric Augustin
Browse files

[py3] Avoided relying on 2.x-only internals

in LiveServerTestCase.
parent e98cb05e
Loading
Loading
Loading
Loading
+19 −16
Original line number Diff line number Diff line
@@ -917,6 +917,9 @@ class QuietWSGIRequestHandler(WSGIRequestHandler):
        pass


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