mirror of
https://github.com/django/django.git
synced 2025-06-05 03:29:12 +00:00
Revert "Merge pull request #2508 from tomwys/patch-1"
This reverts commit c45607e9395ffd05c2cff454fdb55b3ab05dc0e3, reversing changes made to 9769337ca855f4831c855d6663ff3f688ee1652d.
This commit is contained in:
parent
66cbd81456
commit
666990a2a0
@ -81,7 +81,7 @@ def gen_filenames():
|
|||||||
Yields a generator over filenames referenced in sys.modules and translation
|
Yields a generator over filenames referenced in sys.modules and translation
|
||||||
files.
|
files.
|
||||||
"""
|
"""
|
||||||
filenames = [filename.__file__ for filename in sys.modules.values()
|
filenames = [filename.__file__ for filename in list(sys.modules.values())
|
||||||
if hasattr(filename, '__file__')]
|
if hasattr(filename, '__file__')]
|
||||||
|
|
||||||
if settings.USE_I18N:
|
if settings.USE_I18N:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user