summaryrefslogtreecommitdiffstats
path: root/nova/utils.py
diff options
context:
space:
mode:
authorJoe Gordon <jogo@cloudscaling.com>2012-05-04 15:54:12 -0700
committerJoe Gordon <jogo@cloudscaling.com>2012-05-07 15:08:58 -0700
commit86dc475bd6de08c8a329a26f988d0fff8868c8a0 (patch)
tree34836d4064fdf0341a5addcbe3c75d019229bc97 /nova/utils.py
parentf729925f5a3231c1b8ec2cb3c9c5fcd2bc68dbbb (diff)
pylint cleanup
Mostly remove unused imports Change-Id: Icdb3ec77537b2568f4e85843bab89eb63cd17d8e
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 73ede52d5..7d4cfd287 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):