Commit 559cb826 authored by Max Burstein's avatar Max Burstein
Browse files

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".
parent c7c19ac4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -57,7 +57,7 @@ _error_files = []
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: