Converted a list comprehension into a generator expression in query_utils.py

This commit is contained in:
Adrian Holovaty 2013-04-25 12:22:16 -05:00
parent 5a5e1ac24d
commit 6bccbc05a4
1 changed files with 1 additions and 1 deletions

View File

@ -194,7 +194,7 @@ def deferred_class_factory(model, attrs):
name = "%s_Deferred_%s" % (model.__name__, '_'.join(sorted(list(attrs)))) name = "%s_Deferred_%s" % (model.__name__, '_'.join(sorted(list(attrs))))
name = util.truncate_name(name, 80, 32) name = util.truncate_name(name, 80, 32)
overrides = dict([(attr, DeferredAttribute(attr, model)) for attr in attrs]) overrides = dict((attr, DeferredAttribute(attr, model)) for attr in attrs)
overrides["Meta"] = Meta overrides["Meta"] = Meta
overrides["__module__"] = model.__module__ overrides["__module__"] = model.__module__
overrides["_deferred"] = True overrides["_deferred"] = True