FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 07-29-2011, 05:44 PM
Chris Lumens
 
Default Locally disable some E1101 "errors" that pylint doesn't understand.

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@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 11:33 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org