[elbe-devel] [PATCH 03/13] pylint - efilesystem: remove unused variables

Manuel Traut manut at linutronix.de
Thu Aug 30 17:05:14 CEST 2018


Signed-off-by: Manuel Traut <manut at linutronix.de>
---
 elbepack/efilesystem.py | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/elbepack/efilesystem.py b/elbepack/efilesystem.py
index e6a8c2ab..5ab6601b 100644
--- a/elbepack/efilesystem.py
+++ b/elbepack/efilesystem.py
@@ -334,7 +334,6 @@ class TargetFs(ChRootFilesystem):
                 pass
 
         if self.xml.has("target/package/cpio"):
-            oldwd = os.getcwd()
             cpio_name = self.xml.text("target/package/cpio/name")
             os.chdir(self.fname(''))
             try:
@@ -349,7 +348,6 @@ class TargetFs(ChRootFilesystem):
                 pass
 
         if self.xml.has("target/package/squashfs"):
-            oldwd = os.getcwd()
             sfs_name = self.xml.text("target/package/squashfs/name")
             os.chdir(self.fname(''))
             try:
@@ -358,7 +356,7 @@ class TargetFs(ChRootFilesystem):
                     (self.fname(''), targetdir, sfs_name))
                 # only append filename if creating mksquashfs was successful
                 self.images.append(sfs_name)
-            except CommandError as e:
+            except CommandError:
                 # error was logged; continue
                 pass
 
-- 
2.18.0




More information about the elbe-devel mailing list