From 4efcb6d5add33151f481186a2a0376702b1cf2ff Mon Sep 17 00:00:00 2001 From: Raphael Deem Date: Wed, 25 Jan 2017 16:25:16 -0800 Subject: [PATCH] fix before/after event docstrings --- sanic/server.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sanic/server.py b/sanic/server.py index a984854e..74ffb832 100644 --- a/sanic/server.py +++ b/sanic/server.py @@ -271,15 +271,15 @@ def serve(host, port, request_handler, error_handler, before_start=None, :param request_handler: Sanic request handler with middleware :param error_handler: Sanic error handler with middleware :param before_start: Function to be executed before the server starts - listening. Takes single argument `loop` + listening. Takes arguments `app` instance and `loop` :param after_start: Function to be executed after the server starts - listening. Takes single argument `loop` + listening. Takes arguments `app` instance and `loop` :param before_stop: Function to be executed when a stop signal is - received before it is respected. Takes single - argument `loop` + received before it is respected. Takes arguments + `app` instance and `loop` :param after_stop: Function to be executed when a stop signal is - received after it is respected. Takes single - argument `loop` + received after it is respected. Takes arguments + `app` instance and `loop` :param debug: Enables debug output (slows server) :param request_timeout: time in seconds :param ssl: SSLContext