summaryrefslogtreecommitdiff
path: root/user/py3-pyirc/new-taillight.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2022-12-04 00:45:07 +0000
committerZach van Rijn <me@zv.io>2022-12-03 19:07:44 -0600
commitd262cc5c0f9168fc07f9c844600ec06d8330a21e (patch)
treee4ab5ff33c29b682dd30ee3d9e327c709a29d9b7 /user/py3-pyirc/new-taillight.patch
parent57ba41a5c0b9244b3e87536235a3ce4e28c44c64 (diff)
downloadpackages-d262cc5c0f9168fc07f9c844600ec06d8330a21e.tar.gz
packages-d262cc5c0f9168fc07f9c844600ec06d8330a21e.tar.bz2
packages-d262cc5c0f9168fc07f9c844600ec06d8330a21e.tar.xz
packages-d262cc5c0f9168fc07f9c844600ec06d8330a21e.zip
user/py3-pyirc: Update for new taillight
Fixes: #906
Diffstat (limited to 'user/py3-pyirc/new-taillight.patch')
-rw-r--r--user/py3-pyirc/new-taillight.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/user/py3-pyirc/new-taillight.patch b/user/py3-pyirc/new-taillight.patch
new file mode 100644
index 000000000..51ca7f8e0
--- /dev/null
+++ b/user/py3-pyirc/new-taillight.patch
@@ -0,0 +1,21 @@
+Update priority enum for Taillight >= 0.4.
+
+--- py3-pyirc-3.0b1_git20190929/PyIRC/signal.py.old 2019-09-29 17:01:50.000000000 +0000
++++ py3-pyirc-3.0b1_git20190929/PyIRC/signal.py 2022-12-04 00:44:03.697227554 +0000
+@@ -12,14 +12,14 @@
+ from inspect import getmembers
+ from logging import getLogger
+
+-from taillight.signal import UnsharedSignal
++from taillight.signal import SignalPriority, UnsharedSignal
+ from taillight import ANY
+
+
+ _logger = getLogger(__name__) # pylint: disable=invalid-name
+
+
+-def event(hclass, event_name, priority=UnsharedSignal.PRIORITY_NORMAL,
++def event(hclass, event_name, priority=SignalPriority.PRIORITY_NORMAL,
+ listener=ANY):
+ """Tag a function as an event for later binding.
+