Fix mistake in warning

This commit is contained in:
Angus Hollands 2017-02-14 20:53:55 +00:00
parent 56f56d008a
commit 6535ba7c24

View File

@ -346,8 +346,8 @@ def serve(host, port, request_handler, error_handler, before_start=None,
try:
loop.add_signal_handler(_signal, loop.stop)
except NotImplementedError:
log.warn(('Sanic tried to use loop.add_signal_handler')
('but it is not implemented on this platform.'))
log.warn('Sanic tried to use loop.add_signal_handler but it is'
' not implemented on this platform.')
pid = os.getpid()
try: