diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2015-07-25 00:45:18 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2015-07-25 00:45:18 (GMT) |
commit | 9625340cc8ca426d0f339d460022955bc01155fd (patch) | |
tree | 02bb10987b53cbaedad246122b5470e35b26e40e /Lib/asyncio/locks.py | |
parent | 401e52e80374783cc5d04ccee8071b540340c46b (diff) | |
parent | 389e3d768d8f5bd312476db795f6432651bc656b (diff) | |
download | cpython-9625340cc8ca426d0f339d460022955bc01155fd.zip cpython-9625340cc8ca426d0f339d460022955bc01155fd.tar.gz cpython-9625340cc8ca426d0f339d460022955bc01155fd.tar.bz2 |
Merge 3.5 (asyncio)
Diffstat (limited to 'Lib/asyncio/locks.py')
-rw-r--r-- | Lib/asyncio/locks.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Lib/asyncio/locks.py b/Lib/asyncio/locks.py index b2e516b..7a13279 100644 --- a/Lib/asyncio/locks.py +++ b/Lib/asyncio/locks.py @@ -3,16 +3,13 @@ __all__ = ['Lock', 'Event', 'Condition', 'Semaphore', 'BoundedSemaphore'] import collections -import sys +from . import compat from . import events from . import futures from .coroutines import coroutine -_PY35 = sys.version_info >= (3, 5) - - class _ContextManager: """Context manager. @@ -70,7 +67,7 @@ class _ContextManagerMixin: yield from self.acquire() return _ContextManager(self) - if _PY35: + if compat.PY35: def __await__(self): # To make "with await lock" work. |