Author: troll Date: Mon Dec 12 15:24:10 2005 GMT Module: SOURCES Tag: HEAD ---- Log message: - initial checkin of patch preventing from reloading files which can't exist in PLD
---- Files affected: SOURCES: python-django-autoreload.patch (NONE -> 1.1) (NEW) ---- Diffs: ================================================================ Index: SOURCES/python-django-autoreload.patch diff -u /dev/null SOURCES/python-django-autoreload.patch:1.1 --- /dev/null Mon Dec 12 16:24:10 2005 +++ SOURCES/python-django-autoreload.patch Mon Dec 12 16:24:05 2005 @@ -0,0 +1,11 @@ +--- Django-0.90/django/utils/autoreload.py~ 2005-10-31 04:27:13.000000000 +0100 ++++ Django-0.90/django/utils/autoreload.py 2005-12-12 15:59:29.951381160 +0100 +@@ -39,7 +39,7 @@ + for filename in filter(lambda v: v, map(lambda m: getattr(m, "__file__", None), sys.modules.values())) + reloadFiles: + if not os.path.exists(filename): + continue # File might be in an egg, so it can't be reloaded. +- if filename.endswith(".pyc"): ++ if filename.endswith(".pyc") and os.path.exists(filename[:-1]): + filename = filename[:-1] + mtime = os.stat(filename).st_mtime + if filename not in mtimes: ================================================================ _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit