[yum-commits] Branch 'yum-3_2_X' - 2 commits - output.py test/yum-pylintrc

Tim Lauridsen timlau at osuosl.org
Mon Mar 30 12:36:24 UTC 2009


 output.py         |    4 +++-
 test/yum-pylintrc |    6 +++---
 2 files changed, 6 insertions(+), 4 deletions(-)

New commits:
commit 3284243e753737787f8ec446339b2ea5b3c51be5
Author: Tim Lauridsen <timlau at fedoraproject.org>
Date:   Mon Mar 30 14:36:14 2009 +0200

    make the interupt_callback handler attributes at little nicer and shout up a pylint warning

diff --git a/output.py b/output.py
index 79127bd..669efce 100755
--- a/output.py
+++ b/output.py
@@ -294,6 +294,8 @@ class YumOutput:
             self.i18ndomains = ["redhat-dist"]
 
         self.term = YumTerm()
+        self._last_interrupt = None
+
     
     def printtime(self):
         months = [_('Jan'), _('Feb'), _('Mar'), _('Apr'), _('May'), _('Jun'),
@@ -1101,7 +1103,7 @@ Remove   %5.5s Package(s)
 
         now = time.time()
 
-        if not hasattr(self, '_last_interrupt'):
+        if not self._last_interrupt:
             hibeg = self.term.MODE['bold']
             hiend = self.term.MODE['normal']
             msg = _("""
commit d9a89b8bfda8b33e2ce6f1f85d10b28492751aa5
Author: Tim Lauridsen <timlau at fedoraproject.org>
Date:   Mon Mar 30 14:25:14 2009 +0200

    extra pylint config to limit false positives

diff --git a/test/yum-pylintrc b/test/yum-pylintrc
index 478004a..f7aee50 100644
--- a/test/yum-pylintrc
+++ b/test/yum-pylintrc
@@ -174,7 +174,7 @@ good-names=i,j,k,ex,Run,_,n,e,r,v,a,po,f,m,u,h,l
 bad-names=foo,bar,baz,toto,tutu,tata
 
 # List of builtins function names that should not be used, separated by a comma
-bad-functions=apply,input
+bad-functions=input
 
 
 # checks for
@@ -206,7 +206,7 @@ ignore-mixin-members=yes
 
 # List of classes names for which member attributes should not be checked
 # (useful for classes with attributes dynamicaly set).
-ignored-classes=SQLObject
+ignored-classes=SQLObject,NullTranslations
 
 # When zope mode is activated, consider the acquired-members option to ignore
 # access to some undefined attributes.
@@ -253,7 +253,7 @@ int-import-graph=
 
 # List of interface methods to ignore, separated by a comma. This is used for
 # instance to not check methods defines in Zope's Interface base class.
-ignore-iface-methods=isImplementedBy,deferred,extends,names,namesAndDescriptions,queryDescriptionFor,getBases,getDescriptionFor,getDoc,getName,getTaggedValue,getTaggedValueTags,isEqualOrExtendedBy,setTaggedValue,isImplementedByInstancesOf,adaptWith,is_implemented_by
+ignore-iface-methods=interrupt_callback
 
 # List of method names used to declare (i.e. assign) instance attributes.
 defining-attr-methods=__init__,__new__,setUp


More information about the Yum-commits mailing list