Added fix-py35-compat.patch.

This commit is contained in:
Thomas Goirand
2016-02-05 09:36:47 +00:00
parent e41613ecfd
commit 210897fd95
3 changed files with 19 additions and 0 deletions

1
debian/changelog vendored
View File

@@ -6,6 +6,7 @@ python-trollius (2.0-1) unstable; urgency=medium
* Testing with all versions of Python(3).
* Move some build-depends into build-depends-indep.
* Remove Pre-Depends on dpkg.
* Added fix-py35-compat.patch.
-- Thomas Goirand <zigo@debian.org> Fri, 05 Feb 2016 16:54:08 +0800

17
debian/patches/fix-py35-compat.patch vendored Normal file
View File

@@ -0,0 +1,17 @@
Description: Fix Python 3.5 compat
Author: Thomas Goirand <zigo@debian.org>
Forwarded: no
Last-Update: 2016-02-05
--- python-trollius-2.0.orig/trollius/futures.py
+++ python-trollius-2.0/trollius/futures.py
@@ -422,9 +422,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)

1
debian/patches/series vendored Normal file
View File

@@ -0,0 +1 @@
fix-py35-compat.patch