Skip to contentSkip to conversation

xfce.bbclass: Mark string as raw in a regexp

PATCH New Khem Raj 1 participant 1 message Oct 14, 2021

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 xfce.bbclass: Mark string as raw in a regexp

Fixes python Deprecated behavior warning

xfce.bbclass:3: DeprecationWarning: invalid escape sequence \.
m = re.match("^([0-9]+)\.([0-9]+)", v)

---
 meta-xfce/classes/xfce.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-xfce/classes/xfce.bbclass +1 -1
index 7cd806701c..913202be59 100644
@@ -1,6 +1,6 @@
 def xfce_verdir(v):
     import re
-    m = re.match("^([0-9]+)\.([0-9]+)", v)
+    m = re.match(r"^([0-9]+)\.([0-9]+)", v)
     return "%s.%s" % (m.group(1), m.group(2))
 
 HOMEPAGE = "http://www.xfce.org"
Signature · 1 line
2.33.0