Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[1.6.x] Fixed #21049 -- Fixed autoreload for Python 3

Changed th system module values check to return a list.
In Python 3 it returns a dict_view which could occassionally produce
a runtime error of "dictionary changed size during iteration".

Backport of 559cb82 from master
  • Loading branch information...
commit 92e89452f1aa3987cb70648e69718c6adea4b079 1 parent 2c73ba8
@mburst mburst authored timgraham committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/utils/autoreload.py
View
2  django/utils/autoreload.py
@@ -57,7 +57,7 @@
def code_changed():
global _mtimes, _win
filenames = []
- for m in sys.modules.values():
+ for m in list(sys.modules.values()):
try:
filenames.append(m.__file__)
except AttributeError:
Please sign in to comment.
Something went wrong with that request. Please try again.