mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 13:29:49 +00:00
bitbake: cooker: Get rid of duplicate 'import re'
The re module was imported at the top, no need to do it again. (Bitbake rev: c29c2370635075949c75937c237602600f4f10dc) Signed-off-by: Namhyung Kim <namhyung@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
70d0316d57
commit
f401e8f88c
@@ -818,7 +818,6 @@ class BBCooker:
|
|||||||
or to find all machine configuration files one could call:
|
or to find all machine configuration files one could call:
|
||||||
findFilesMatchingInDir(self, 'conf/machines', 'conf')
|
findFilesMatchingInDir(self, 'conf/machines', 'conf')
|
||||||
"""
|
"""
|
||||||
import re
|
|
||||||
|
|
||||||
matches = []
|
matches = []
|
||||||
p = re.compile(re.escape(filepattern))
|
p = re.compile(re.escape(filepattern))
|
||||||
@@ -1228,7 +1227,6 @@ class BBCooker:
|
|||||||
'''
|
'''
|
||||||
Create a new image with a "require"/"inherit" base_image statement
|
Create a new image with a "require"/"inherit" base_image statement
|
||||||
'''
|
'''
|
||||||
import re
|
|
||||||
if timestamp:
|
if timestamp:
|
||||||
image_name = os.path.splitext(image)[0]
|
image_name = os.path.splitext(image)[0]
|
||||||
timestr = time.strftime("-%Y%m%d-%H%M%S")
|
timestr = time.strftime("-%Y%m%d-%H%M%S")
|
||||||
|
|||||||
Reference in New Issue
Block a user