mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-04 14:39:54 +00:00
ippool: silence a DeprecationWarning
Use regex strings (r’’)
Fixes
meta-networking/recipes-daemons/ippool/ippool_1.3.bb:99:
DeprecationWarning: invalid escape sequence \d
r = re.compile("\d*\.\d*\.\d*")
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -96,7 +96,7 @@ def get_ppp_version(d):
|
||||
return None
|
||||
|
||||
bb.debug(1, "pppd plugin dir %s" % pppd_plugin)
|
||||
r = re.compile("\d*\.\d*\.\d*")
|
||||
r = re.compile(r"\d*\.\d*\.\d*")
|
||||
for f in os.listdir(pppd_plugin):
|
||||
if os.path.isdir(os.path.join(pppd_plugin, f)):
|
||||
ma = r.match(f)
|
||||
|
||||
Reference in New Issue
Block a user