1
0
mirror of https://github.com/django/django.git synced 2025-10-24 22:26:08 +00:00

Merge pull request #1575 from mburst/ticket_21049

Fixed #21049 -- Fixed autoreload for Python 3
This commit is contained in:
Andrew Godwin
2013-09-06 13:37:11 -07:00

View File

@@ -57,7 +57,7 @@ _error_files = []
def code_changed(): def code_changed():
global _mtimes, _win global _mtimes, _win
filenames = [] filenames = []
for m in sys.modules.values(): for m in list(sys.modules.values()):
try: try:
filenames.append(m.__file__) filenames.append(m.__file__)
except AttributeError: except AttributeError: