diff options
Diffstat (limited to 'Lib/asyncio/futures.py')
-rw-r--r-- | Lib/asyncio/futures.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/asyncio/futures.py b/Lib/asyncio/futures.py index b2e57ef..7b6204a 100644 --- a/Lib/asyncio/futures.py +++ b/Lib/asyncio/futures.py @@ -9,7 +9,6 @@ import sys import traceback from . import base_futures -from . import compat from . import events @@ -238,8 +237,7 @@ class Future: assert self.done(), "yield from wasn't used with future" return self.result() # May raise too. - if compat.PY35: - __await__ = __iter__ # make compatible with 'await' expression + __await__ = __iter__ # make compatible with 'await' expression # Needed for testing purposes. |