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
|