mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 15:45:15 -04:00
dev-python/system_hotkey: disable py3.8, py3.9
- Fixed broken test - Added virtualx eclass to test with a valid display - Added patch to fix Python compatibility issue - Added missing dependencies to RDEPEND - Added missing PYTHON_USEDEP to RDEPEND Signed-off-by: Devrin Talen <devrin@fastmail.com>
This commit is contained in:
@@ -0,0 +1,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')
|
||||
|
||||
Reference in New Issue
Block a user