[elbe-devel] [PATCH 04/13] pylint: ignore apt_pkg.Cache is not iteratable

Manuel Traut manut at linutronix.de
Wed Aug 29 21:07:25 CEST 2018


apt_pkg.Cache is definitely iterateable. Ignore the error.
It can't be ignored by 'not-aniterable' so use the error code instead.

Signed-off-by: Manuel Traut <manut at linutronix.de>
---
 elbepack/commands/pkgdiff.py | 2 ++
 elbepack/virtapt.py          | 1 +
 2 files changed, 3 insertions(+)

diff --git a/elbepack/commands/pkgdiff.py b/elbepack/commands/pkgdiff.py
index 38b13112..59387302 100644
--- a/elbepack/commands/pkgdiff.py
+++ b/elbepack/commands/pkgdiff.py
@@ -57,6 +57,7 @@ def run_command(argv):
 
     gen_pkgs = {}
     for p in gen_cache.packages:
+        # pylint: disable=E1133
         if opt.noauto:
             if p.current_ver and not \
                gc[p.name].is_auto_installed and not \
@@ -75,6 +76,7 @@ def run_command(argv):
 
     fix_pkgs = {}
     for p in fix_cache.packages:
+        # pylint: disable=E1133
         if opt.noauto:
             if p.current_ver and not \
                fc[p.name].is_auto_installed and not \
diff --git a/elbepack/virtapt.py b/elbepack/virtapt.py
index 3aac138c..7bff22c6 100644
--- a/elbepack/virtapt.py
+++ b/elbepack/virtapt.py
@@ -250,6 +250,7 @@ class VirtApt(object):
                 c = None
             if not c:
                 for p in self.cache.packages:
+                    # pylint: disable=E1133
                     for x in p.provides_list:
                         if pp == x[0]:
                             pkg = self.cache[x[2].parent_pkg.name]
-- 
2.18.0




More information about the elbe-devel mailing list