Skip to content

Commit 80e58be

Browse files
committed
FIX: Raw string to avoid a DeprecationWarning: invalid escape sequence
1 parent 506239a commit 80e58be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

irc3/dec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def plugin(wrapped):
1515
class event:
1616
r"""register a method or function an irc event callback::
1717
18-
>>> @event('^:\S+ 353 [^&#]+(?P<channel>\S+) :(?P<nicknames>.*)')
18+
>>> @event(r'^:\S+ 353 [^&#]+(?P<channel>\S+) :(?P<nicknames>.*)')
1919
... def on_names(bot, channel=None, nicknames=None):
2020
... '''this will catch nickname when you enter a channel'''
2121
... print(channel, nicknames.split(':'))

0 commit comments

Comments
 (0)