[elbe-devel] [PATCH 04/13] pylint - fstab: rename variable

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


to avoid

fstab.py:46, PyLint, Priority: Normal
Redefining name 'fstabentry' from outer scope (line 72)

Signed-off-by: Manuel Traut <manut at linutronix.de>
---
 elbepack/fstab.py | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/elbepack/fstab.py b/elbepack/fstab.py
index b8a93777..f7cc4859 100644
--- a/elbepack/fstab.py
+++ b/elbepack/fstab.py
@@ -43,14 +43,14 @@ class mountpoint_dict (dict):
         dict.__init__(self)
         self.id_count = 0
 
-    def register(self, fstabentry):
-        mp = fstabentry.mountpoint
+    def register(self, fstab_entry):
+        mp = fstab_entry.mountpoint
 
         if mp in self:
-            fstabentry.id = self[mp].id
+            fstab_entry.id = self[mp].id
         else:
-            fstabentry.id = str(self.id_count)
-            self[mp] = fstabentry
+            fstab_entry.id = str(self.id_count)
+            self[mp] = fstab_entry
             self.id_count += 1
 
     @staticmethod
-- 
2.18.0




More information about the elbe-devel mailing list