diff options
author | Allan Saddi <allan@saddi.com> | 2009-05-29 10:55:06 -0700 |
---|---|---|
committer | Allan Saddi <allan@saddi.com> | 2009-05-29 10:55:06 -0700 |
commit | 9304b629b4a54175ca34dafa839d359e87679f2f (patch) | |
tree | 4ba2f0ed153eac41e95bdf8d8f5fbc07423bffdb /flup | |
parent | bf3d1514c8e6edd861041019263f5afb018a6e74 (diff) | |
download | flup-9304b629b4a54175ca34dafa839d359e87679f2f.tar.gz |
Use old API for daemon flag, for compatibility with Python < 2.6.
Diffstat (limited to 'flup')
-rw-r--r-- | flup/server/threadpool.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/flup/server/threadpool.py b/flup/server/threadpool.py index 88efa70..98d3afe 100644 --- a/flup/server/threadpool.py +++ b/flup/server/threadpool.py @@ -56,7 +56,7 @@ class ThreadPool(object): def _start_new_thread(self): t = threading.Thread(target=self._worker) self._threads.append(t) - t.daemon = True + t.setDaemon(True) t.start() return t |