[elbe-devel] [PATCH 06/28] pylint: mark unused arguments
Torben Hohn
torben.hohn at linutronix.de
Wed Aug 22 11:29:00 CEST 2018
pylint complains about unused arguments.
mark arguments, that are required because of the interface, unused
Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
---
elbepack/efilesystem.py | 4 ++--
elbepack/soapclient.py | 2 +-
elbepack/updated.py | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/elbepack/efilesystem.py b/elbepack/efilesystem.py
index aef11415..70c15c07 100644
--- a/elbepack/efilesystem.py
+++ b/elbepack/efilesystem.py
@@ -207,7 +207,7 @@ class ChRootFilesystem(ElbeFilesystem):
self.mount()
return self
- def __exit__(self, type, value, traceback):
+ def __exit__(self, _typ, _value, _traceback):
if self.inchroot:
self.leave_chroot()
self.umount()
@@ -344,7 +344,7 @@ class TargetFs(ChRootFilesystem):
targetdir, cpio_name))
# only append filename if creating cpio was successful
self.images.append(cpio_name)
- except CommandError as e:
+ except CommandError:
# error was logged; continue
pass
diff --git a/elbepack/soapclient.py b/elbepack/soapclient.py
index 2490df0a..2b60409c 100644
--- a/elbepack/soapclient.py
+++ b/elbepack/soapclient.py
@@ -193,7 +193,7 @@ class AddUserAction(ClientAction):
def __init__(self, node):
ClientAction.__init__(self, node)
- def execute(self, client, opt, args):
+ def execute(self, client, _opt, args):
if len(args) != 4:
print(
"usage: elbe control add_user <name> <fullname> <password> <email>",
diff --git a/elbepack/updated.py b/elbepack/updated.py
index aee90451..b08420da 100644
--- a/elbepack/updated.py
+++ b/elbepack/updated.py
@@ -181,7 +181,7 @@ class rw_access:
cmd = "mount -o remount,rw %s" % self.mount
os.system(cmd)
- def __exit__(self, type, value, traceback):
+ def __exit__(self, _typ, _value, _traceback):
if self.mount_orig == 'ro':
self.status.log("remount %s readonly" % self.mount)
os.system("sync")
--
2.11.0
More information about the elbe-devel
mailing list