summaryrefslogtreecommitdiffstats
path: root/scripts/lib/wic/imager/baseimager.py
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2015-04-09 14:36:49 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-04-13 22:33:20 +0100
commitd0d0ab85c49d7a874bef8b8d8844bbe9b1dc0c49 (patch)
tree7907a4a29e7d02b43af97f6f12c156519517438f /scripts/lib/wic/imager/baseimager.py
parent1521a3dda0a6ebcedb52f4a410f705c8d68d0a11 (diff)
downloadpoky-d0d0ab85c49d7a874bef8b8d8844bbe9b1dc0c49.tar.gz
wic:code cleanup: No space allowed
Fixed pylint warning 'No space allowed around keyword argument assignment' (From OE-Core rev: e07dd9b9c71960fbeded162ed52fbce06de620e9) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/wic/imager/baseimager.py')
-rw-r--r--scripts/lib/wic/imager/baseimager.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/lib/wic/imager/baseimager.py b/scripts/lib/wic/imager/baseimager.py
index 2075358bdc..0afbc2cf0c 100644
--- a/scripts/lib/wic/imager/baseimager.py
+++ b/scripts/lib/wic/imager/baseimager.py
@@ -42,7 +42,7 @@ class BaseImageCreator(object):
42 def __del__(self): 42 def __del__(self):
43 self.cleanup() 43 self.cleanup()
44 44
45 def __init__(self, createopts = None): 45 def __init__(self, createopts=None):
46 """Initialize an ImageCreator instance. 46 """Initialize an ImageCreator instance.
47 47
48 ks -- a pykickstart.KickstartParser instance; this instance will be 48 ks -- a pykickstart.KickstartParser instance; this instance will be
@@ -131,8 +131,8 @@ class BaseImageCreator(object):
131 self.workdir = os.path.join(self.tmpdir, "build") 131 self.workdir = os.path.join(self.tmpdir, "build")
132 if not os.path.exists(self.workdir): 132 if not os.path.exists(self.workdir):
133 os.makedirs(self.workdir) 133 os.makedirs(self.workdir)
134 self.__builddir = tempfile.mkdtemp(dir = self.workdir, 134 self.__builddir = tempfile.mkdtemp(dir=self.workdir,
135 prefix = "imgcreate-") 135 prefix="imgcreate-")
136 except OSError, (err, msg): 136 except OSError, (err, msg):
137 raise CreatorError("Failed create build directory in %s: %s" % 137 raise CreatorError("Failed create build directory in %s: %s" %
138 (self.tmpdir, msg)) 138 (self.tmpdir, msg))
@@ -178,7 +178,7 @@ class BaseImageCreator(object):
178 178
179 self._cleanup() 179 self._cleanup()
180 180
181 shutil.rmtree(self.__builddir, ignore_errors = True) 181 shutil.rmtree(self.__builddir, ignore_errors=True)
182 self.__builddir = None 182 self.__builddir = None
183 183
184 self.__clean_tmpdir() 184 self.__clean_tmpdir()