pylint: Fix unused-{argument,variable} warning

This commit fixes 4 out of the remaining 5 pylint warnings:

$ pylint --rcfile=.pylintrc *.py
************* Module gitc_utils
W:146, 0: TODO(sbasi/jorg): Come up with a solution to remove the sleep below. (fixme)
W:130, 6: Unused variable 'name' (unused-variable)
************* Module main
W:382,32: Unused argument 'fp' (unused-argument)
W:382,36: Unused argument 'code' (unused-argument)
W:382,42: Unused argument 'msg' (unused-argument)

Change-Id: Ie3d77b9a65b7daefaa9aa4b80f4b682c1678fd58
Signed-off-by: Stefan Beller <sbeller@google.com>
This commit is contained in:
Stefan Beller 2016-06-21 11:48:57 -07:00
parent 6685106306
commit 9d2b14d2ec
2 changed files with 2 additions and 2 deletions

View File

@ -127,7 +127,7 @@ def generate_gitc_manifest(gitc_manifest, manifest, paths=None):
repo_proj.revisionExpr = None repo_proj.revisionExpr = None
# Convert URLs from relative to absolute. # Convert URLs from relative to absolute.
for name, remote in manifest.remotes.iteritems(): for _name, remote in manifest.remotes.iteritems():
remote.fetchUrl = remote.resolvedFetchUrl remote.fetchUrl = remote.resolvedFetchUrl
# Save the manifest. # Save the manifest.

View File

@ -379,7 +379,7 @@ class _KerberosAuthHandler(urllib.request.BaseHandler):
self.context = None self.context = None
self.handler_order = urllib.request.BaseHandler.handler_order - 50 self.handler_order = urllib.request.BaseHandler.handler_order - 50
def http_error_401(self, req, fp, code, msg, headers): def http_error_401(self, req, fp, code, msg, headers): # pylint:disable=unused-argument
host = req.get_host() host = req.get_host()
retry = self.http_error_auth_reqed('www-authenticate', host, req, headers) retry = self.http_error_auth_reqed('www-authenticate', host, req, headers)
return retry return retry