From 210897fd9579c7951075b621a156c20f4533c744 Mon Sep 17 00:00:00 2001 From: Thomas Goirand Date: Fri, 5 Feb 2016 09:36:47 +0000 Subject: [PATCH] Added fix-py35-compat.patch. --- debian/changelog | 1 + debian/patches/fix-py35-compat.patch | 17 +++++++++++++++++ debian/patches/series | 1 + 3 files changed, 19 insertions(+) create mode 100644 debian/patches/fix-py35-compat.patch create mode 100644 debian/patches/series diff --git a/debian/changelog b/debian/changelog index 7a3945f..1e7a4e9 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Fri, 05 Feb 2016 16:54:08 +0800 diff --git a/debian/patches/fix-py35-compat.patch b/debian/patches/fix-py35-compat.patch new file mode 100644 index 0000000..295de05 --- /dev/null +++ b/debian/patches/fix-py35-compat.patch @@ -0,0 +1,17 @@ +Description: Fix Python 3.5 compat +Author: Thomas Goirand +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) diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..7de529c --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +fix-py35-compat.patch