summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2014-07-25 09:32:14 -0400
committerTim Graham <timograham@gmail.com>2014-07-25 13:23:52 -0400
commitb8cb5ba7081388ef38eccdf8e826747ad3a67e66 (patch)
tree1df4391fc04bd30f47efaccdbfd0bca7872110d4 /django
parent08681d7757152d805533296d69ad9b8e2c129b1c (diff)
Fixed #23083 -- Fixed runserver reloading when deleting a file.
Thanks Collin Anderson for the report and hirokiky for the fix.
Diffstat (limited to 'django')
-rw-r--r--django/utils/autoreload.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/django/utils/autoreload.py b/django/utils/autoreload.py
index 3ac8c1fa8e..e7df8c8938 100644
--- a/django/utils/autoreload.py
+++ b/django/utils/autoreload.py
@@ -91,6 +91,7 @@ def gen_filenames(only_new=False):
# fail with RuntimeError: cannot mutate dictionary while iterating
global _cached_modules, _cached_filenames
module_values = set(sys.modules.values())
+ _cached_filenames = clean_files(_cached_filenames)
if _cached_modules == module_values:
# No changes in module list, short-circuit the function
if only_new: