File: syntax-warning

package info (click to toggle)
gnome-keysign 1.3.0-5.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,460 kB
  • sloc: python: 5,143; xml: 126; makefile: 33; sh: 16
file content (25 lines) | stat: -rw-r--r-- 558 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
22
23
24
25
Description: remove SyntaxWarning
Author: satta@debian.org
Applied-Upstream: https://github.com/gnome-keysign/gnome-keysign/pull/121
--- a/keysign/app.py
+++ b/keysign/app.py
@@ -65,7 +65,7 @@
 log = logging.getLogger(__name__)
 
 def remove_whitespace(s):
-    cleaned = re.sub('[\s+]', '', s)
+    cleaned = re.sub(r'[\s+]', '', s)
     return cleaned
 
 
--- a/keysign/receive.py
+++ b/keysign/receive.py
@@ -61,7 +61,7 @@
 
 
 def remove_whitespace(s):
-    cleaned = re.sub('[\s+]', '', s)
+    cleaned = re.sub(r'[\s+]', '', s)
     return cleaned