diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2015-09-02 13:58:13 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-09-02 23:46:51 +0100 |
commit | 3644b9f5ca25dfc61d4f5eda0f073c8a879b492b (patch) | |
tree | d7cf7cfdb2e98ca65b9d11c5fdf1c72a8b002c5e /scripts/lib/wic/imager/baseimager.py | |
parent | 41e319730cdd9c320ae4d855df7aaff6f1679aaf (diff) | |
download | openembedded-core-3644b9f5ca25dfc61d4f5eda0f073c8a879b492b.tar.gz openembedded-core-3644b9f5ca25dfc61d4f5eda0f073c8a879b492b.tar.bz2 openembedded-core-3644b9f5ca25dfc61d4f5eda0f073c8a879b492b.zip |
wic: fix pylint warning unused-variable
Removed or reworked code with unused variables.
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.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/wic/imager/baseimager.py b/scripts/lib/wic/imager/baseimager.py index 67a2d0116b..4abcabca4b 100644 --- a/scripts/lib/wic/imager/baseimager.py +++ b/scripts/lib/wic/imager/baseimager.py @@ -132,9 +132,9 @@ class BaseImageCreator(object): os.makedirs(self.workdir) self.__builddir = tempfile.mkdtemp(dir=self.workdir, prefix="imgcreate-") - except OSError, (err, msg): + except OSError as err: raise CreatorError("Failed create build directory in %s: %s" % - (self.tmpdir, msg)) + (self.tmpdir, err)) def __setup_tmpdir(self): if not self.enabletmpfs: |