remove arbiter import from main

This commit is contained in:
benoitc 2010-03-17 00:32:02 +01:00
parent 0781caadab
commit 451647d5ad
3 changed files with 2 additions and 4 deletions

View File

@ -154,8 +154,8 @@ class Arbiter(object):
self.stop()
self.log.info("Shutting down: %s" % self.master_name)
#if self.pidfile:
# del self.pidfile
if self.pidfile:
del self.pidfile
sys.exit(0)
def handle_chld(self, sig, frame):

View File

@ -101,7 +101,6 @@ class Config(object):
def arbiter(self):
uri = self.conf.get('arbiter', 'egg:gunicorn')
arbiter = util.parse_arbiter_uri(uri)
print arbiter
if hasattr(arbiter, 'setup'):
arbiter.setup()
return arbiter

View File

@ -9,7 +9,6 @@ import os
import pkg_resources
import sys
from gunicorn.arbiter import Arbiter
from gunicorn.config import Config
from gunicorn import util, __version__