diff options
author | Robert Brewer <fumanchu@aminus.org> | 2006-08-05 23:05:52 +0000 |
---|---|---|
committer | Robert Brewer <fumanchu@aminus.org> | 2006-08-05 23:05:52 +0000 |
commit | 18b33b51a0183605747f0a2b36e3b464897c01d5 (patch) | |
tree | fd03ad9627679849cc25265af81c934e03909370 /cherrypy/lib | |
parent | ac1aeb9f0c7b98fcff1786d1b6806b6c73db0331 (diff) | |
download | cherrypy-git-18b33b51a0183605747f0a2b36e3b464897c01d5.tar.gz |
Changed server.start to server.quickstart, and server.start_all to server.start.
Diffstat (limited to 'cherrypy/lib')
-rw-r--r-- | cherrypy/lib/covercp.py | 4 | ||||
-rw-r--r-- | cherrypy/lib/profiler.py | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/cherrypy/lib/covercp.py b/cherrypy/lib/covercp.py index 1ef53fb3..7441aaaa 100644 --- a/cherrypy/lib/covercp.py +++ b/cherrypy/lib/covercp.py @@ -349,13 +349,11 @@ def serve(path=localFile, port=8080): coverage.cache_default = path import cherrypy - cherrypy.tree.mount(CoverStats()) cherrypy.config.update({'server.socket_port': port, 'server.thread_pool': 10, 'environment': "production", }) - cherrypy.server.start() - cherrypy.engine.start() + cherrypy.quickstart(CoverStats()) if __name__ == "__main__": serve(*tuple(sys.argv[1:])) diff --git a/cherrypy/lib/profiler.py b/cherrypy/lib/profiler.py index e3b9d066..7afbf74d 100644 --- a/cherrypy/lib/profiler.py +++ b/cherrypy/lib/profiler.py @@ -170,13 +170,11 @@ class make_app: def serve(path=None, port=8080): import cherrypy - cherrypy.tree.mount(Profiler(path)) cherrypy.config.update({'server.socket_port': int(port), 'server.thread_pool': 10, 'environment': "production", }) - cherrypy.server.start() - cherrypy.engine.start() + cherrypy.quickstart(Profiler(path)) if __name__ == "__main__": |