Commits

Rene Peinthor committed 66631de

Fixes for python2
Tested on python 2.3 and python 2.6

Comments (0)

Files changed (1)

cherrypy/process/plugins.py

     it won't delay stopping the whole process.
     """
 
-    def __init__(self, interval, function, args=[], kwargs={}, bus=None, *, daemon=True):
+    def __init__(self, interval, function, args=[], kwargs={}, bus=None, daemon=True):
         threading.Thread.__init__(self)
         self.interval = interval
         self.function = function
                 # Quit on first error to avoid massive logs.
                 raise
 
+    def _set_daemon(self):
+        return True
+
 
 class Monitor(SimplePlugin):
     """WSPBus listener to periodically run a callback in its own thread."""