blob: 265c32a5f096cb4ff3aa4cf6161691b942674586 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
system_hotkey was written for a previous version of Python that had
collections.Iterable available. That moved under collections.abc in a
later release.
--- a/system_hotkey/system_hotkey.py
+++ b/system_hotkey/system_hotkey.py
@@ -281,7 +281,7 @@ class MixIn():
thread safe
'''
- assert isinstance(hotkey, collections.Iterable) and type(hotkey) not in (str, bytes)
+ assert isinstance(hotkey, collections.abc.Iterable) and type(hotkey) not in (str, bytes)
if self.consumer == 'callback' and not callback:
raise TypeError('Function register requires callback argument in non sonsumer mode')
|