Skip to contentSkip to conversation

cooker: Get rid of duplicate 'import re'

PATCH New Namhyung Kim 1 participant 1 message Jul 30, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cooker: Get rid of duplicate 'import re'

The re module was imported at the top, no need to do it again.

---
 lib/bb/cooker.py | 2 --
 1 file changed, 2 deletions(-)
lib/bb/cooker.py +0 -2
index ecb3f9b..2c7788e 100644
@@ -818,7 +818,6 @@ class BBCooker:
         or to find all machine configuration files one could call:
         findFilesMatchingInDir(self, 'conf/machines', 'conf')
         """
-        import re
 
         matches = []
         p = re.compile(re.escape(filepattern))
@@ -1228,7 +1227,6 @@ class BBCooker:
         '''
         Create a new image with a "require"/"inherit" base_image statement
         '''
-        import re
         if timestamp:
             image_name = os.path.splitext(image)[0]
             timestr = time.strftime("-%Y%m%d-%H%M%S")
Signature · 1 line
2.0.0