File: 0002-Fix-SyntaxWarning-in-regexp.patch

package info (click to toggle)
fritzconnection 1.15.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,272 kB
  • sloc: python: 5,156; xml: 1,019; makefile: 6
file content (21 lines) | stat: -rw-r--r-- 825 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: Edward Betts <edward@4angle.com>
Date: Thu, 29 May 2025 21:28:51 -0500
Subject: Fix SyntaxWarning in regexp

---
 fritzconnection/core/soaper.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fritzconnection/core/soaper.py b/fritzconnection/core/soaper.py
index 3b47ee1..ccc5ada 100644
--- a/fritzconnection/core/soaper.py
+++ b/fritzconnection/core/soaper.py
@@ -204,7 +204,7 @@ def redact_response(redact: bool, input: str):
     redacted = re.sub(r"(<{0}>)(.*)(</{0}>)".format(ext_ip_keys), r"\1******\4", redacted)
 
     # redact wifi passwords
-    wifi_pwd_keys = 'New(WEPKey\d+|PreSharedKey|KeyPassphrase)'
+    wifi_pwd_keys = r'New(WEPKey\d+|PreSharedKey|KeyPassphrase)'
     redacted = re.sub(r"(<{0}>)(.*)(</{0}>)".format(wifi_pwd_keys), r"\1******\4", redacted)
     return redacted