openembedded-devel.lists.openembedded.org archive mirror
 help / color / mirror / Atom feed
* [meta-xfce][PATCH] xfce.bbclass: Mark string as raw in a regexp
@ 2021-10-14 16:23 Khem Raj
  0 siblings, 0 replies; only message in thread
From: Khem Raj @ 2021-10-14 16:23 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Khem Raj

Fixes python Deprecated behavior warning

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

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta-xfce/classes/xfce.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-xfce/classes/xfce.bbclass b/meta-xfce/classes/xfce.bbclass
index 7cd806701c..913202be59 100644
--- a/meta-xfce/classes/xfce.bbclass
+++ b/meta-xfce/classes/xfce.bbclass
@@ -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"
-- 
2.33.0



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-10-14 16:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-14 16:23 [meta-xfce][PATCH] xfce.bbclass: Mark string as raw in a regexp Khem Raj

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).