Remove trivial cases of unused variables (1)

Kill some of the variables marked as unused by flakes8. This should
allow to enable F841 check in the future.
Only trivial cases with no function calls and obviously pure functions
(like datetime.now(), or len()) are cleaned up here.

Part 1, split to reduce conflicts.

Change-Id: I82854349574ec4bcb9336aba626eefdaed81a8c8
This commit is contained in:
Stanislaw Pitucha
2013-06-13 13:57:15 +00:00
parent b37c17952b
commit bd9abc1b47
2 changed files with 2 additions and 2 deletions

View File

@@ -153,7 +153,7 @@ class AttestationService(object):
return httplib.OK, res
return status_code, None
except (socket.error, IOError) as e:
except (socket.error, IOError):
return IOError, None
def _request(self, cmd, subcmd, hosts):

View File

@@ -286,7 +286,7 @@ class Service(service.Service):
"""Perform basic config checks before starting processing."""
# Make sure the tempdir exists and is writable
try:
with utils.tempdir() as tmpdir:
with utils.tempdir():
pass
except Exception as e:
LOG.error(_('Temporary directory is invalid: %s'), e)