support python3.7 / asyncio

diff --git a/notify-proxy b/notify-proxy
index 9003f57..c8d290b 100755
--- a/notify-proxy
+++ b/notify-proxy
@@ -72,7 +72,7 @@ class NotifyProtocol(asyncio.Protocol):
             logger.warn("Failed to parse payload:\n%s", e)
             return
 
-        asyncio.async(notify_send(**data))
+        asyncio.ensure_future(notify_send(**data))
 
 
 
@@ -97,7 +97,7 @@ logger.info("Listening on %s:%d", addr, port)
 if DEBUG:
     data = json.loads(DEBUG)
     logger.debug("Testing %r", data)
-    loop.run_until_complete(asyncio.async(notify_send(**data)))
+    loop.run_until_complete(asyncio.ensure_future(notify_send(**data)))
 else:
     try:
         loop.run_forever()

is required to run notify-proxy in python 3.7+

Assignee Loading
Time tracking Loading