mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-09-13 18:38:13 +00:00
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>
This commit is contained in:
parent
0e60f404c4
commit
0300f77934
@ -1,6 +1,6 @@
|
|||||||
def xfce_verdir(v):
|
def xfce_verdir(v):
|
||||||
import re
|
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))
|
return "%s.%s" % (m.group(1), m.group(2))
|
||||||
|
|
||||||
HOMEPAGE = "http://www.xfce.org"
|
HOMEPAGE = "http://www.xfce.org"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user