Fix docstring style in Sanic.register_listener (#1678)

* Fix docstring style: google -> reST
This commit is contained in:
ku-mu 2019-09-17 02:27:22 +09:00 committed by 7
parent b7d4121586
commit e13f42c17b

View File

@ -138,11 +138,9 @@ class Sanic:
""" """
Register the listener for a given event. Register the listener for a given event.
Args: :param listener: callable i.e. setup_db(app, loop)
listener: callable i.e. setup_db(app, loop) :param event: when to register listener i.e. 'before_server_start'
event: when to register listener i.e. 'before_server_start' :return: listener
Returns: listener
""" """
return self.listener(event)(listener) return self.listener(event)(listener)