diff options
author | Victor Stinner <vstinner@redhat.com> | 2016-02-05 11:55:55 +0100 |
---|---|---|
committer | Victor Stinner <vstinner@redhat.com> | 2016-02-05 12:24:45 +0100 |
commit | e22a30b026996681d6dc3ee737ba4a2eeded729e (patch) | |
tree | 988158b5dcc85bb39e17e907c96d1323c812e170 /trollius | |
parent | 5388ec1ac155206e7ad1484d59dd4d8341d71aca (diff) | |
download | trollius-git-e22a30b026996681d6dc3ee737ba4a2eeded729e.tar.gz |
Fix Future on Python 3.5
Future.__iter__() doesn't exist on Python 3.5.
Diffstat (limited to 'trollius')
-rw-r--r-- | trollius/futures.py | 3 |
1 files changed, 0 insertions, 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) |