[elbe-devel] [PATCH 25/40] pylint: updated - remove/annotate unused parameter

Manuel Traut manut at linutronix.de
Fri Sep 14 13:56:37 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 af4207f0..dff49681 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.19.0.rc2




More information about the elbe-devel mailing list