[elbe-devel] [PATCH 24/25] pylint - updated: remove / annotate unused parameter
Manuel Traut
manut at linutronix.de
Wed Aug 29 21:02:54 CEST 2018
annotate them, because it is a defined callback
Signed-off-by: Manuel Traut <manut at linutronix.de>
---
elbepack/updated.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/elbepack/updated.py b/elbepack/updated.py
index 49f149b2..e1aa7866 100644
--- a/elbepack/updated.py
+++ b/elbepack/updated.py
@@ -187,7 +187,7 @@ class rw_access(object):
self.status.log("remount %s readonly" % self.mount)
os.system("sync")
cmd = "mount -o remount,ro %s" % self.mount
- ret = os.system(cmd)
+ os.system(cmd)
def get_mount_status(self):
with open('/etc/mtab') as mtab:
@@ -599,6 +599,7 @@ def handle_update_file(upd_file, status, remove=False):
def shutdown(signum, fname, status):
+ # pylint: disable=unused-argument
status.stop = True
for mon in status.monitors:
mon.stop()
--
2.18.0
More information about the elbe-devel
mailing list