[elbe-devel] [PATCH 05/13] pylint - fstab: fix variable name
Manuel Traut
manut at linutronix.de
Thu Aug 30 17:05:16 CEST 2018
fstab.py:76, PyLint, Priority: Normal
Redefining built-in 'id'
Signed-off-by: Manuel Traut <manut at linutronix.de>
---
elbepack/fstab.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/elbepack/fstab.py b/elbepack/fstab.py
index f7cc4859..fe6e4517 100644
--- a/elbepack/fstab.py
+++ b/elbepack/fstab.py
@@ -73,7 +73,7 @@ class fstabentry(object):
# pylint: disable=too-many-instance-attributes
- def __init__(self, xml, entry, id=0):
+ def __init__(self, xml, entry, fsid=0):
if entry.has("source"):
self.source = entry.text("source")
else:
@@ -100,7 +100,7 @@ class fstabentry(object):
self.partnum = 0
self.number = ''
- self.id = str(id)
+ self.id = str(fsid)
def get_str(self):
return "%s %s %s %s 0 %s\n" % (self.source, self.mountpoint,
--
2.18.0
More information about the elbe-devel
mailing list