From bbcb74fdca60d91ca8dc8101dc977e5de16d34ca Mon Sep 17 00:00:00 2001 From: Oliver Tonnhofer Date: Mon, 9 Dec 2013 13:09:54 +0100 Subject: [PATCH] merge duplicate EventletWorker.init_process method (fixes #657) --- gunicorn/workers/geventlet.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/gunicorn/workers/geventlet.py b/gunicorn/workers/geventlet.py index 24e561896..d3579adb7 100644 --- a/gunicorn/workers/geventlet.py +++ b/gunicorn/workers/geventlet.py @@ -47,6 +47,7 @@ def patch(self): def init_process(self): hubs.use_hub() + self.patch() super(EventletWorker, self).init_process() def timeout_ctx(self): @@ -87,8 +88,3 @@ def run(self): if te != t: raise [a.kill() for a in acceptors] - - def init_process(self): - # monkey patch here - self.patch() - super(EventletWorker, self).init_process()