diff options
author | Khem Raj <raj.khem@gmail.com> | 2021-10-14 09:21:58 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2021-10-16 08:25:21 -0700 |
commit | 0300f779342629b030b0e1dcf9d33ce4a65c8bae (patch) | |
tree | 88ae3b15223a737db437bc1394ba2beea5484982 /meta-xfce | |
parent | 0e60f404c4d7372e6d8d036f9456c01d6af0a511 (diff) | |
download | meta-openembedded-contrib-0300f779342629b030b0e1dcf9d33ce4a65c8bae.tar.gz |
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)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-xfce')
-rw-r--r-- | meta-xfce/classes/xfce.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
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" |