Skip to content

Commit 7d923ed

Browse files
committed
Fix warning messages when loading typing_counter.py
2026-01-02 01:24:44 Plugins loaded: alias, buflist, charset, exec, fifo, fset, irc, logger, python, relay, script, spell, trigger, typing, xfer 2026-01-02 01:34:43 python: stdout/stderr (?): /home/blackbit/.weechat/python/autoload/typing_counter.py:118: SyntaxWarning: invalid escape sequence '\$' 2026-01-02 01:34:43 python: stdout/stderr (?): regex_color=re.compile('\$\{([^\{\}]+)\}') 2026-01-02 01:34:43 python: stdout/stderr (?): /home/blackbit/.weechat/python/autoload/typing_counter.py:121: SyntaxWarning: invalid escape sequence '\{' 2026-01-02 01:34:43 python: stdout/stderr (?): regex_optional_tags=re.compile('%\{[^\{\}]+\}') 2026-01-02 01:34:43 python scripts loaded: autosort, bitlbee_typing_notice, bufsave, postpone, prism, typing_counter
1 parent adaae60 commit 7d923ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/typing_counter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,10 @@
115115
tc_options = {}
116116

117117
# regexp to match ${color} tags
118-
regex_color=re.compile('\$\{([^\{\}]+)\}')
118+
regex_color=re.compile(r'\$\{([^\{\}]+)\}')
119119

120120
# regexp to match ${optional string} tags
121-
regex_optional_tags=re.compile('%\{[^\{\}]+\}')
121+
regex_optional_tags=re.compile(r'%\{[^\{\}]+\}')
122122

123123
def command_run_cb (data, signal, signal_data):
124124
if tc_options['warn_command'] == '':

0 commit comments

Comments
 (0)