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...
1 parent 2c73ba8 commit 92e89452f1aa3987cb70648e69718c6adea4b079 @mburst mburst committed with timgraham Sep 6, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/utils/
@@ -57,7 +57,7 @@
def code_changed():
global _mtimes, _win
filenames = []
- for m in sys.modules.values():
+ for m in list(sys.modules.values()):
except AttributeError:

0 comments on commit 92e8945

Please sign in to comment.