0
0
mirror of https://github.com/django/django.git synced 2024-12-01 15:42:04 +01:00

Merge pull request #2508 from tomwys/patch-1

Don't copy list for iteration.
This commit is contained in:
Alex Gaynor 2014-04-02 08:32:51 -07:00
commit c45607e939

View File

@ -81,7 +81,7 @@ def gen_filenames():
Yields a generator over filenames referenced in sys.modules and translation
files.
"""
filenames = [filename.__file__ for filename in list(sys.modules.values())
filenames = [filename.__file__ for filename in sys.modules.values()
if hasattr(filename, '__file__')]
if settings.USE_I18N: