From 86dc475bd6de08c8a329a26f988d0fff8868c8a0 Mon Sep 17 00:00:00 2001 From: Joe Gordon Date: Fri, 4 May 2012 15:54:12 -0700 Subject: pylint cleanup Mostly remove unused imports Change-Id: Icdb3ec77537b2568f4e85843bab89eb63cd17d8e --- nova/utils.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'nova/utils.py') 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): -- cgit