From a3ac731eebe6123e98dd2de356a1bb00e5ad525b Mon Sep 17 00:00:00 2001
From: Michal Arbet <michal.arbet@ultimum.io>
Date: Tue, 31 Jul 2018 10:00:48 +0000
Subject: [PATCH] Add 0002-Fix-py37-async-as-keyword.patch (Closes: #904357)

---
 debian/changelog                              |  6 ++++-
 .../0002-Fix-py37-async-as-keyword.patch      | 22 +++++++++++++++++++
 debian/patches/series                         |  1 +
 3 files changed, 28 insertions(+), 1 deletion(-)
 create mode 100644 debian/patches/0002-Fix-py37-async-as-keyword.patch

diff --git a/debian/changelog b/debian/changelog
index 7703240..e4d772f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,9 +1,13 @@
 python-pysnmp4 (4.4.3-2) UNRELEASED; urgency=medium
 
+  [ Ondřej Nový ]
   * d/control: Set Vcs-* to salsa.debian.org
   * d/copyright: Use https protocol in Format field
 
- -- Ondřej Nový <onovy@debian.org>  Tue, 13 Feb 2018 10:03:56 +0100
+  [ Michal Arbet ]
+  * Add 0002-Fix-py37-async-as-keyword.patch (Closes: #904357)
+
+ -- Michal Arbet <michal.arbet@ultimum.io>  Tue, 31 Jul 2018 12:59:43 +0300
 
 python-pysnmp4 (4.4.3-1) unstable; urgency=medium
 
diff --git a/debian/patches/0002-Fix-py37-async-as-keyword.patch b/debian/patches/0002-Fix-py37-async-as-keyword.patch
new file mode 100644
index 0000000..a4b0e9b
--- /dev/null
+++ b/debian/patches/0002-Fix-py37-async-as-keyword.patch
@@ -0,0 +1,22 @@
+From: Michal Arbet <michal.arbet@ultimum.io>
+Date: Tue, 31 Jul 2018 12:39:21 +0300
+Forwarded: yes
+Last-Update: 2018-07-31
+
+---
+ pysnmp/carrier/asyncio/dispatch.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/pysnmp/carrier/asyncio/dispatch.py b/pysnmp/carrier/asyncio/dispatch.py
+index bd86579..9af7fcd 100644
+--- a/pysnmp/carrier/asyncio/dispatch.py
++++ b/pysnmp/carrier/asyncio/dispatch.py
+@@ -69,7 +69,7 @@ class AsyncioDispatcher(AbstractTransportDispatcher):
+
+     def registerTransport(self, tDomain, transport):
+         if self.loopingcall is None and self.getTimerResolution() > 0:
+-            self.loopingcall = asyncio.async(self.handle_timeout())
++            self.loopingcall = getattr(asyncio, 'async')(self.handle_timeout())
+         AbstractTransportDispatcher.registerTransport(
+             self, tDomain, transport
+         )
diff --git a/debian/patches/series b/debian/patches/series
index cf6112b..a7ab4d8 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 0001-Remove-privacy-breach-badges.patch
+0002-Fix-py37-async-as-keyword.patch
-- 
GitLab