Merge remote-tracking branch 'upstream/master' into remove-stop-event

This commit is contained in:
Raphael Deem 2017-03-26 15:51:44 -07:00
commit fc69678206
2 changed files with 1 additions and 19 deletions

View File

@ -18,3 +18,4 @@ A list of Sanic extensions created by the community.
`Babel` library
- [Dispatch](https://github.com/ashleysommer/sanic-dispatcher): A dispatcher inspired by `DispatcherMiddleware` in werkzeug. Can act as a Sanic-to-WSGI adapter.
- [Sanic-OAuth](https://github.com/Sniedes722/Sanic-OAuth): OAuth Library for connecting to & creating your own token providers.
- [Sanic-nginx-docker-example](https://github.com/itielshwartz/sanic-nginx-docker-example): Simple and easy to use example of Sanic behined nginx using docker-compose.

View File

@ -597,23 +597,14 @@ class Sanic:
NOTE: This does not support multiprocessing and is not the preferred
way to run a Sanic application.
"""
<<<<<<< HEAD
<<<<<<< df9884de3c7ca6ad248162c8f404afd0ed774359
if protocol is None:
protocol = (WebSocketProtocol if self.websocket_enabled
else HttpProtocol)
=======
=======
>>>>>>> 2dca53a696064d5f3447484febb2294648b37d1f
if stop_event is not None:
if debug:
warnings.simplefilter('default')
warnings.warn("stop_event will be removed from future versions.",
DeprecationWarning)
<<<<<<< HEAD
>>>>>>> remove stop_event
=======
>>>>>>> 2dca53a696064d5f3447484febb2294648b37d1f
server_settings = self._helper(
host=host, port=port, debug=debug, before_start=before_start,
after_start=after_start, before_stop=before_stop,
@ -629,8 +620,6 @@ class Sanic:
protocol=HttpProtocol, backlog=100, stop_event=None,
register_sys_signals=True, run_async=False):
"""Helper function used by `run` and `create_server`."""
<<<<<<< HEAD
<<<<<<< df9884de3c7ca6ad248162c8f404afd0ed774359
if isinstance(ssl, dict):
# try common aliaseses
@ -641,19 +630,11 @@ class Sanic:
context = create_default_context(purpose=ssl.Purpose.CLIENT_AUTH)
context.load_cert_chain(cert, keyfile=key)
ssl = context
=======
=======
>>>>>>> 2dca53a696064d5f3447484febb2294648b37d1f
if stop_event is not None:
if debug:
warnings.simplefilter('default')
warnings.warn("stop_event will be removed from future versions.",
DeprecationWarning)
<<<<<<< HEAD
>>>>>>> remove stop_event
=======
>>>>>>> 2dca53a696064d5f3447484febb2294648b37d1f
if loop is not None:
if debug:
warnings.simplefilter('default')