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
commit ce5e09353d
1 changed files with 1 additions and 1 deletions

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: