SOURCES: python-cherrypy-autoreload.patch (NEW) - new; we don't ha...

arekm arekm at pld-linux.org
Tue Dec 20 01:05:24 CET 2005


Author: arekm                        Date: Tue Dec 20 00:05:24 2005 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- new; we don't have .py files

---- Files affected:
SOURCES:
   python-cherrypy-autoreload.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/python-cherrypy-autoreload.patch
diff -u /dev/null SOURCES/python-cherrypy-autoreload.patch:1.1
--- /dev/null	Tue Dec 20 01:05:24 2005
+++ SOURCES/python-cherrypy-autoreload.patch	Tue Dec 20 01:05:18 2005
@@ -0,0 +1,12 @@
+diff -ur CherryPy-2.1.0.org/cherrypy/lib/autoreload.py CherryPy-2.1.0/cherrypy/lib/autoreload.py
+--- CherryPy-2.1.0.org/cherrypy/lib/autoreload.py	2005-10-05 12:52:00.000000000 +0200
++++ CherryPy-2.1.0/cherrypy/lib/autoreload.py	2005-12-20 01:04:06.000000000 +0100
+@@ -18,7 +18,7 @@
+     while RUN_RELOADER:
+         for filename in map(fileattr, sys.modules.values()) + reloadFiles:
+             if filename:
+-                if filename.endswith(".pyc"):
++		if filename.endswith(".pyc") and os.path.exists(filename[:-1]):
+                     filename = filename[:-1]
+                 try:
+                     mtime = os.stat(filename).st_mtime
================================================================



More information about the pld-cvs-commit mailing list