[yum-commits] Branch 'yum-3_2_X' - test/yum-pylintrc yum/comps.py yum/mdparser.py

Tim Lauridsen timlau at osuosl.org
Mon Mar 30 11:55:00 UTC 2009


 test/yum-pylintrc |    3 ++-
 yum/comps.py      |    1 -
 yum/mdparser.py   |    1 -
 3 files changed, 2 insertions(+), 3 deletions(-)

New commits:
commit f3da11a74fd265a8bc13bf76356dd27ebbecc356
Author: Tim Lauridsen <timlau at fedoraproject.org>
Date:   Mon Mar 30 13:54:51 2009 +0200

    pylint: unneed pass lines and extra pylint excludes

diff --git a/test/yum-pylintrc b/test/yum-pylintrc
index 5e4ef02..e5ba184 100644
--- a/test/yum-pylintrc
+++ b/test/yum-pylintrc
@@ -80,7 +80,8 @@ disable-msg-cat=C,R
 # W1001: *Use of "property" on an old style class*
 # W0221: *Arguments number differs from %s method*
 # W0703: *Catch "Exception"*
-disable-msg=E1101,F0401,W0704,W0612,W0212,W0613,W0602,W0511,W0401,W0614,W0232,W0201,W0603,W0621,W0142,W0102,W0105,W0702,W0231,E0202,W0622,W0403,W0223,W0104,W1001,W0221,W0703
+# W1010: *Exception doesn't inherit from standard "Exception" class* (give false positives on ex. KeyboardInterrupt)
+disable-msg=E1101,F0401,W0704,W0612,W0212,W0613,W0602,W0511,W0401,W0614,W0232,W0201,W0603,W0621,W0142,W0102,W0105,W0702,W0231,E0202,W0622,W0403,W0223,W0104,W1001,W0221,W0703,W1010
 
 
 [REPORTS]
diff --git a/yum/comps.py b/yum/comps.py
index cf203f1..2048c77 100755
--- a/yum/comps.py
+++ b/yum/comps.py
@@ -518,7 +518,6 @@ class Comps(object):
                     self.add_category(category)
         except SyntaxError, e:
             raise CompsException, "comps file is empty/damaged"
-            del parser
             
         del parser
         
diff --git a/yum/mdparser.py b/yum/mdparser.py
index e668744..c74608d 100644
--- a/yum/mdparser.py
+++ b/yum/mdparser.py
@@ -200,7 +200,6 @@ def test():
     for pkg in parser:
         print '-' * 40
         print pkg
-        pass
 
     print 'read: %s packages (%s suggested)' % (parser.count, parser.total)
 


More information about the Yum-commits mailing list