[projects/pld-builder.new] Fix SyntaxWarning: invalid escape sequence '\s' warning

arekm arekm at pld-linux.org
Thu Jun 5 02:24:35 CEST 2025


commit bd0b1892c093a4c851f83232ad6c6ee513704c4d
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu Jun 5 00:32:29 2025 +0200

    Fix SyntaxWarning: invalid escape sequence '\s' warning

 PLD_Builder/gpg.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/PLD_Builder/gpg.py b/PLD_Builder/gpg.py
index f9a5b2b..2310ac1 100644
--- a/PLD_Builder/gpg.py
+++ b/PLD_Builder/gpg.py
@@ -28,7 +28,7 @@ def get_keys(buf):
         log.error("gnupg run, does gpg binary exist? : %s" % e)
         raise
 
-    rx = re.compile("^gpg:.*using\s[DR]SA\skey\s(?:ID\s)?(\w+)")
+    rx = re.compile(r"^gpg:.*using\s[DR]SA\skey\s(?:ID\s)?(\w+)")
     keys = []
 
     for l in util.to_str(d_stderr).split('\n'):
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/pld-builder.new.git/commitdiff/bd0b1892c093a4c851f83232ad6c6ee513704c4d



More information about the pld-cvs-commit mailing list