summaryrefslogtreecommitdiff
path: root/novaclient/utils.py
diff options
context:
space:
mode:
authorChangBo Guo(gcb) <eric.guo@easystack.cn>2014-06-17 15:07:04 +0800
committerChangBo Guo(gcb) <eric.guo@easystack.cn>2014-06-19 09:49:05 +0800
commit88d0b6f2d957cd2e7abc3fc11fc533017c5f46bd (patch)
treeea42ae7cb4c6ef17c94bc22420e905f0609d9361 /novaclient/utils.py
parente6a51f47c409adfa56e8b1e16425ac3fc26e08ab (diff)
downloadpython-novaclient-88d0b6f2d957cd2e7abc3fc11fc533017c5f46bd.tar.gz
Enable F841
F841 detects local variable is assigned to but never used. This commit fix the violations and enable F841 in gate. Change-Id: I52419f5e17db70e511ff2d4d61c85458c958e9c3
Diffstat (limited to 'novaclient/utils.py')
-rw-r--r--novaclient/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/novaclient/utils.py b/novaclient/utils.py
index 6d93f26a..36e73203 100644
--- a/novaclient/utils.py
+++ b/novaclient/utils.py
@@ -351,7 +351,7 @@ def _load_entry_point(ep_name, name=None):
def is_integer_like(val):
"""Returns validation of a value as an integer."""
try:
- value = int(val)
+ int(val)
return True
except (TypeError, ValueError, AttributeError):
return False