Permalink
Browse files

clean-up on parameters of WSGIServerProcess.__init__

  • Loading branch information...
1 parent c27d101 commit 1e7bc8f2fbfe0a93579e0accacc5cf15d77e4928 @brosner committed Oct 24, 2009
Showing with 5 additions and 6 deletions.
  1. +5 −6 bosnowsgi.py
View
@@ -30,15 +30,14 @@ class WSGIServerProcess(object):
A simple wrapper around starting and stopping a CherryPy WSGI process.
"""
- def __init__(self, dispatcher, host, port, daemonize=False, pidfile=None,
- env={}, wsgi_env={}):
+ def __init__(self, dispatcher, host, port, **kwargs):
self.dispatcher = dispatcher
self.host = host
self.port = port
- self.daemonize = daemonize
- self.pidfile = pidfile
- self.env = env
- self.wsgi_env = wsgi_env
+ self.daemonize = kwargs.get("daemonize", False)
+ self.pidfile = kwargs.get("pidfile", None)
+ self.env = kwargs.get("env", {})
+ self.wsgi_env = kwargs.get("wsgi_env", {})
def start(self):
"""

0 comments on commit 1e7bc8f

Please sign in to comment.