[PATCH 5/6] Locally disable some E1101 "errors" that pylint doesn't understand.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The sitecustomize error is because sys.setdefaultencoding is special and
gets removed from the namespace.

The other two are because pylint doesn't understand the dbMatch method call,
likely because it's added to the module dynamically.
---
 pyanaconda/security.py         |    1 +
 pyanaconda/sitecustomize.py    |    1 +
 pyanaconda/storage/__init__.py |    1 +
 3 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/pyanaconda/security.py b/pyanaconda/security.py
index 5c71012..6f9449b 100644
--- a/pyanaconda/security.py
+++ b/pyanaconda/security.py
@@ -64,6 +64,7 @@ class Security:
 
         iutil.resetRpmDb(rootPath)
         ts = rpm.TransactionSet(rootPath)
+        # pylint: disable-msg=E1101
         return ts.dbMatch('provides', 'fprintd-pam').count()
 
     def write(self, instPath):
diff --git a/pyanaconda/sitecustomize.py b/pyanaconda/sitecustomize.py
index 8246ed0..f2bcd10 100644
--- a/pyanaconda/sitecustomize.py
+++ b/pyanaconda/sitecustomize.py
@@ -19,4 +19,5 @@
 #
 
 import sys
+# pylint: disable-msg=E1101
 sys.setdefaultencoding('utf-8')
diff --git a/pyanaconda/storage/__init__.py b/pyanaconda/storage/__init__.py
index db4a67a..c39bc0d 100644
--- a/pyanaconda/storage/__init__.py
+++ b/pyanaconda/storage/__init__.py
@@ -1440,6 +1440,7 @@ def getReleaseString(mountpoint):
 
     # We get the arch from the initscripts package, but the version and name
     # must come from reading the release file.
+    # pylint: disable-msg=E1101
     mi = ts.dbMatch('provides', 'initscripts')
     for h in mi:
         relArch = h['arch']
-- 
1.7.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux