summaryrefslogtreecommitdiffstats
path: root/nova/utils.py
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-05-08 14:51:03 +0000
committerGerrit Code Review <review@openstack.org>2012-05-08 14:51:03 +0000
commitfaa98823951fb390559adde538c15bd830056655 (patch)
tree84b68ee9fd6ba0a948172c267dd8956b45c51c49 /nova/utils.py
parent1405b62cde93669072efb13d78cb0382255c7b21 (diff)
parent86dc475bd6de08c8a329a26f988d0fff8868c8a0 (diff)
Merge "pylint cleanup"
Diffstat (limited to 'nova/utils.py')
-rw-r--r--nova/utils.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/nova/utils.py b/nova/utils.py
index b3f2ceaaf..0c20dd34d 100644
--- a/nova/utils.py
+++ b/nova/utils.py
@@ -337,7 +337,7 @@ def debug(arg):
def generate_uid(topic, size=8):
characters = '01234567890abcdefghijklmnopqrstuvwxyz'
- choices = [random.choice(characters) for x in xrange(size)]
+ choices = [random.choice(characters) for _x in xrange(size)]
return '%s-%s' % (topic, ''.join(choices))
@@ -1090,8 +1090,6 @@ def check_isinstance(obj, cls):
if isinstance(obj, cls):
return obj
raise Exception(_('Expected object of type: %s') % (str(cls)))
- # TODO(justinsb): Can we make this better??
- return cls() # Ugly PyLint hack
def parse_server_string(server_str):