Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #16523 -- Made path handling in autoreload code work on Jython.…

… Thanks, Aymeric Augustin.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit d37e3baf62805b91e8cbd7b169f66b2c9d7962e5 1 parent cfba246
@jezdez jezdez authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  django/utils/
2  django/utils/
@@ -57,6 +57,8 @@ def code_changed():
for filename in filter(lambda v: v, map(lambda m: getattr(m, "__file__", None), sys.modules.values())):
if filename.endswith(".pyc") or filename.endswith(".pyo"):
filename = filename[:-1]
+ if filename.endswith("$py.class"):
+ filename = filename[:-9] + ".py"
if not os.path.exists(filename):
continue # File might be in an egg, so it can't be reloaded.
stat = os.stat(filename)
Please sign in to comment.
Something went wrong with that request. Please try again.