]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
gentoo_build: Disable some pylint warning.
authorBenjamin Drung <benjamin.drung@profitbricks.com>
Tue, 11 Feb 2014 16:24:34 +0000 (17:24 +0100)
committerBenjamin Drung <benjamin.drung@profitbricks.com>
Tue, 11 Feb 2014 16:24:34 +0000 (17:24 +0100)
gentoo_build

index ccc096261af062bd916465b0e7648eaffcd6d1cc..3ef273509bfc908fcac5e60752f7834b1d15bc70 100755 (executable)
@@ -185,7 +185,7 @@ class Ebuild(object):
                                                version=self.version))
 
 
-class MyOptionParser(optparse.OptionParser):
+class MyOptionParser(optparse.OptionParser): # pylint: disable=R0904
     """Derive the OptionParser class to override the format_epilog method"""
 
     def format_epilog(self, formatter):
@@ -216,7 +216,7 @@ def version_substitution(logger, pattern, git_commit=None):
         subst['debupstream'] = changelog.upstream_version
         subst['debversion'] = changelog.full_version
     try:
-        version = pattern.format(**subst)
+        version = pattern.format(**subst) # pylint: disable=W0142
     except KeyError as error:
         key = error.args[0]
         allowed_keys = ["{debupstream}", "{debversion}", "{git-commit}",