[yum-commits] Branch 'yum-3_2_X' - test/yum-pylintrc yumcommands.py yum/sqlitesack.py
Tim Lauridsen
timlau at osuosl.org
Mon Mar 30 11:43:56 UTC 2009
test/yum-pylintrc | 4 +++-
yum/sqlitesack.py | 3 +--
yumcommands.py | 1 -
3 files changed, 4 insertions(+), 4 deletions(-)
New commits:
commit 6721494455e2b88d1351719ca73dd3d3f170bbc1
Author: Tim Lauridsen <timlau at fedoraproject.org>
Date: Mon Mar 30 13:43:47 2009 +0200
pylint: indentation and unneed pass lines and extra pylint excludes
diff --git a/test/yum-pylintrc b/test/yum-pylintrc
index afacc76..5e4ef02 100644
--- a/test/yum-pylintrc
+++ b/test/yum-pylintrc
@@ -78,7 +78,9 @@ disable-msg-cat=C,R
# W0223: *Method %r is abstract in class %r but is not overridden*
# W0104: *Statement seems to have no effect*
# W1001: *Use of "property" on an old style class*
-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: *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
[REPORTS]
diff --git a/yum/sqlitesack.py b/yum/sqlitesack.py
index 0dc7cb6..7e3b459 100644
--- a/yum/sqlitesack.py
+++ b/yum/sqlitesack.py
@@ -227,7 +227,7 @@ class YumAvailablePackageSqlite(YumAvailablePackage, PackageObject, RpmBase):
def returnIdSum(self):
- return (self.checksum_type, self.pkgId)
+ return (self.checksum_type, self.pkgId)
def returnChangelog(self):
self._loadChangelog()
@@ -1017,7 +1017,6 @@ class YumSqlitePackageSack(yumRepo.YumPackageSack):
def db2class(self, db, nevra_only=False):
print 'die die die die die db2class'
- pass
class tmpObject:
pass
y = tmpObject()
diff --git a/yumcommands.py b/yumcommands.py
index 34a0195..aa459e6 100644
--- a/yumcommands.py
+++ b/yumcommands.py
@@ -104,7 +104,6 @@ def checkShellArg(base, basecmd, extcmds):
"""
if len(extcmds) == 0:
base.verbose_logger.debug(_("No argument to shell"))
- pass
elif len(extcmds) == 1:
base.verbose_logger.debug(_("Filename passed to shell: %s"),
extcmds[0])
More information about the Yum-commits
mailing list