From 373eea5b6b1ba027000e09442c7513ba7bf96174 Mon Sep 17 00:00:00 2001 From: Victor Kareh Date: Thu, 2 Apr 2026 09:50:05 -0400 Subject: externaltools: fix python invalid escape sequence warning In later versions of Python, invalid escape sequences changed from a DeprecationWarning to SyntaxWarning. This change uses a raw string for the RE_KEY regex pattern to fix the invalid escape sequence warning. Fixes #737 --- plugins/externaltools/tools/library.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/externaltools/tools/library.py b/plugins/externaltools/tools/library.py index ed66e268..0eb4e123 100755 --- a/plugins/externaltools/tools/library.py +++ b/plugins/externaltools/tools/library.py @@ -197,7 +197,7 @@ class ToolDirectory(object): class Tool(object): - RE_KEY = re.compile('^([a-zA-Z_][a-zA-Z0-9_.\-]*)(\[([a-zA-Z_@]+)\])?$') + RE_KEY = re.compile(r'^([a-zA-Z_][a-zA-Z0-9_.\-]*)(\[([a-zA-Z_@]+)\])?$') def __init__(self, parent, filename=None): super(Tool, self).__init__() -- cgit v1.2.1