From e22a30b026996681d6dc3ee737ba4a2eeded729e Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Fri, 5 Feb 2016 11:55:55 +0100 Subject: Fix Future on Python 3.5 Future.__iter__() doesn't exist on Python 3.5. --- trollius/futures.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/trollius/futures.py b/trollius/futures.py index 746124b..b77d1a1 100644 --- a/trollius/futures.py +++ b/trollius/futures.py @@ -423,9 +423,6 @@ class Future(object): result = other.result() self.set_result(result) - if compat.PY35: - __await__ = __iter__ # make compatible with 'await' expression - if events.asyncio is not None: # Accept also asyncio Future objects for interoperability _FUTURE_CLASSES = (Future, events.asyncio.Future) -- cgit v1.2.1