Package: panoramisk / 1.0-1.2

0001-python3.7-support-68.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From 2deada71295fe6c04564a52edf075c164c55942a Mon Sep 17 00:00:00 2001
From: Quentin Dawans <github@ovv.wtf>
Date: Fri, 20 Jul 2018 15:20:06 +0200
Subject: python3.7 support (#68)

Index: panoramisk-1.0/panoramisk/actions.py
===================================================================
--- panoramisk-1.0.orig/panoramisk/actions.py
+++ panoramisk-1.0/panoramisk/actions.py
@@ -61,7 +61,7 @@ class Action(utils.CaseInsensitiveDict):
             return True
         elif msg.startswith('added') and msg.endswith('to queue'):
             return True
-        elif msg.endswith('successfully queued') and self.async != 'false':
+        elif msg.endswith('successfully queued') and self['async'] != 'false':
             return True
         elif self.as_list:
             return True
Index: panoramisk-1.0/panoramisk/manager.py
===================================================================
--- panoramisk-1.0.orig/panoramisk/manager.py
+++ panoramisk-1.0/panoramisk/manager.py
@@ -209,7 +209,7 @@ class Manager(object):
                     ret = callback(self, event)
                     if (asyncio.iscoroutine(ret) or
                             isinstance(ret, asyncio.Future)):
-                        asyncio.async(ret, loop=self.loop)
+                        asyncio.ensure_future(ret, loop=self.loop)
         return matches
 
     def close(self):