From 666990a2a09593d33d8e445398b3b322350ea993 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Wed, 2 Apr 2014 09:45:42 -0700 Subject: [PATCH] Revert "Merge pull request #2508 from tomwys/patch-1" This reverts commit c45607e9395ffd05c2cff454fdb55b3ab05dc0e3, reversing changes made to 9769337ca855f4831c855d6663ff3f688ee1652d. --- django/utils/autoreload.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/utils/autoreload.py b/django/utils/autoreload.py index 94c74e582a..119bebb148 100644 --- a/django/utils/autoreload.py +++ b/django/utils/autoreload.py @@ -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 sys.modules.values() + filenames = [filename.__file__ for filename in list(sys.modules.values()) if hasattr(filename, '__file__')] if settings.USE_I18N: