[elbe-devel] [PATCH 01/25] pylint: remove 'redefined-variable-type' annotations

Manuel Traut manut at linutronix.de
Wed Aug 29 21:02:31 CEST 2018


we use a newer pylint version now and the issue isn't reported anymore.

Signed-off-by: Manuel Traut <manut at linutronix.de>
---
 elbepack/elbeproject.py |  7 -------
 elbepack/hdimg.py       | 12 ------------
 2 files changed, 19 deletions(-)

diff --git a/elbepack/elbeproject.py b/elbepack/elbeproject.py
index 8bcd53df..1e2b0287 100644
--- a/elbepack/elbeproject.py
+++ b/elbepack/elbeproject.py
@@ -180,10 +180,6 @@ class ElbeProject (object):
             self.log = ASCIIDocLog(logpath)
         else:
             self.log = StdoutLog()
-            # pylint: disable=redefined-variable-type
-            # this is a pylint issue fixed in
-            # 05d4e517bba0adbd3dc5ad3fa79746dc8ed9f9a3
-
 
         self.repo = ProjectRepo(self.arch, self.codename,
                                 os.path.join(self.builddir, "repo"), self.log)
@@ -430,9 +426,6 @@ class ElbeProject (object):
             m = ValidationMode.CHECK_ALL
         else:
             m = ValidationMode.CHECK_BINARIES
-            # pylint: disable=redefined-variable-type
-            # this is a pylint issue fixed in
-            # 05d4e517bba0adbd3dc5ad3fa79746dc8ed9f9a3
 
         self.xml.validate_apt_sources(m, self.arch)
 
diff --git a/elbepack/hdimg.py b/elbepack/hdimg.py
index ea3b1078..9604ca79 100644
--- a/elbepack/hdimg.py
+++ b/elbepack/hdimg.py
@@ -490,24 +490,12 @@ def do_image_hd(outf, hd, fslabel, target, grub_version, grub_fw_type=None):
         grub = grubinstaller199(outf)
     elif grub_version == 202 and grub_fw_type == "efi":
         grub = grubinstaller202(outf, "efi")
-        # pylint: disable=redefined-variable-type
-        # this is a pylint issue fixed in
-        # 05d4e517bba0adbd3dc5ad3fa79746dc8ed9f9a3
     elif grub_version == 202 and grub_fw_type == "hybrid":
         grub = grubinstaller202(outf, "hybrid")
-        # pylint: disable=redefined-variable-type
-        # this is a pylint issue fixed in
-        # 05d4e517bba0adbd3dc5ad3fa79746dc8ed9f9a3
     elif grub_version == 202:
         grub = grubinstaller202(outf)
-        # pylint: disable=redefined-variable-type
-        # this is a pylint issue fixed in
-        # 05d4e517bba0adbd3dc5ad3fa79746dc8ed9f9a3
     else:
         grub = grubinstaller_base(outf)
-        # pylint: disable=redefined-variable-type
-        # this is a pylint issue fixed in
-        # 05d4e517bba0adbd3dc5ad3fa79746dc8ed9f9a3
 
     current_sector = 2048
     for part in hd:
-- 
2.18.0




More information about the elbe-devel mailing list