diff options
author | Stanislaw Pitucha <stanislaw.pitucha@hp.com> | 2013-06-13 13:57:15 +0000 |
---|---|---|
committer | Stanislaw Pitucha <stanislaw.pitucha@hp.com> | 2013-06-13 17:04:08 +0000 |
commit | 9f7eaca80d259201844f097fec24d1e9fe9fb5e3 (patch) | |
tree | 2e2c40b54a0d7c1b7e73818c281ad375d0a99861 /nova/service.py | |
parent | 77595f8e08a61507ad5c7c990651fd4f8131c150 (diff) | |
download | nova-9f7eaca80d259201844f097fec24d1e9fe9fb5e3.tar.gz nova-9f7eaca80d259201844f097fec24d1e9fe9fb5e3.tar.xz nova-9f7eaca80d259201844f097fec24d1e9fe9fb5e3.zip |
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
Diffstat (limited to 'nova/service.py')
-rw-r--r-- | nova/service.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/service.py b/nova/service.py index 0377ba44b..715040323 100644 --- a/nova/service.py +++ b/nova/service.py @@ -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) |