Made dev server autoreloader ignore filenames reported as None.

Useful under Jython. Thanks Thomas Bartelmess for the report and patch.

Ref #9589.
This commit is contained in:
Thomas Bartelmess 2012-12-25 20:37:39 -05:00 committed by Ramiro Morales
parent eb6c107624
commit f9a46d7bc9
1 changed files with 2 additions and 0 deletions

View File

@ -63,6 +63,8 @@ def code_changed():
except AttributeError:
pass
for filename in filenames + _error_files:
if not filename:
continue
if filename.endswith(".pyc") or filename.endswith(".pyo"):
filename = filename[:-1]
if filename.endswith("$py.class"):