From: Pieter Lenaerts <plenae@disroot.org>
Date: Sat, 22 Aug 2026 09:15:34 +0200
Subject: Prevent invalid escape sequence warning

At pkg install the todo block with code in a string literal gives:
/usr/lib/python3/dist-packages/thonny/plugins/autocomplete.py:77:
SyntaxWarning: invalid escape sequence '\W'

Just marking the whole string literal as raw prevents this warning.

Upstream has fixed this TODO block, so forwarding is not needed.

https://github.com/thonny/thonny/commit/3f358ba715d3323df3fa270798153a9c2769d12c

Forwarded: not-needed
---
 thonny/plugins/autocomplete.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/thonny/plugins/autocomplete.py b/thonny/plugins/autocomplete.py
index 273ea09..12c65c0 100644
--- a/thonny/plugins/autocomplete.py
+++ b/thonny/plugins/autocomplete.py
@@ -71,7 +71,7 @@ class CompletionsBox(EditorInfoBox):
 
         # Check if user typed an underscore,
         # if not then don't show names starting with '_'
-        """TODO: try both fuzzy and non-fuzzy completions
+        r"""TODO: try both fuzzy and non-fuzzy completions
         source = text.get("insert linestart", tk.INSERT)
         try:
             current_source_chunk = re.split(r"\W", source)[-1]
