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.
Args:
listener: callable i.e. setup_db(app, loop)
event: when to register listener i.e. 'before_server_start'
Returns: listener
:param listener: callable i.e. setup_db(app, loop)
:param event: when to register listener i.e. 'before_server_start'
:return: listener
"""
return self.listener(event)(listener)