From 660e6ad4abb77c6f3c1d48bd64777dd76c05d7e2 Mon Sep 17 00:00:00 2001 From: Alexander Kanavin Date: Thu, 16 Sep 2021 22:22:34 +0200 Subject: bitbake: fix regexp deprecation warnings See here for details: https://docs.python.org/3/library/re.html Signed-off-by: Alexander Kanavin Signed-off-by: Richard Purdie --- lib/bblayers/query.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/bblayers/query.py b/lib/bblayers/query.py index 6e94c8307..525d4f0d4 100644 --- a/lib/bblayers/query.py +++ b/lib/bblayers/query.py @@ -441,10 +441,10 @@ NOTE: .bbappend files can impact the dependencies. line = fnfile.readline() # The "require/include xxx" in conf/machine/*.conf, .inc and .bbclass - conf_re = re.compile(".*/conf/machine/[^\/]*\.conf$") - inc_re = re.compile(".*\.inc$") + conf_re = re.compile(r".*/conf/machine/[^\/]*\.conf$") + inc_re = re.compile(r".*\.inc$") # The "inherit xxx" in .bbclass - bbclass_re = re.compile(".*\.bbclass$") + bbclass_re = re.compile(r".*\.bbclass$") for layerdir in self.bblayers: layername = self.get_layer_name(layerdir) for dirpath, dirnames, filenames in os.walk(layerdir): -- cgit 1.2.3-korg