diff options
| author | Victor Kareh <[email protected]> | 2026-04-02 09:50:05 -0400 |
|---|---|---|
| committer | Victor Kareh <[email protected]> | 2026-04-07 09:49:11 -0400 |
| commit | 373eea5b6b1ba027000e09442c7513ba7bf96174 (patch) | |
| tree | 438cfce772e998f5ef220c102f9fce8fa67d3e45 /plugins/externaltools | |
| parent | 800845022bde33ad93b414974593c085a38aa5f0 (diff) | |
| download | pluma-master.tar.bz2 pluma-master.tar.xz | |
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
Diffstat (limited to 'plugins/externaltools')
| -rwxr-xr-x | plugins/externaltools/tools/library.py | 2 |
1 files changed, 1 insertions, 1 deletions
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__() |
