From 14697c7ea9126c60a133b00450b9609c18ffcc1f Mon Sep 17 00:00:00 2001 From: Raphael Deem Date: Thu, 26 Jan 2017 08:36:00 -0800 Subject: [PATCH] review changes --- sanic/sanic.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sanic/sanic.py b/sanic/sanic.py index c56e2420..4953ef58 100644 --- a/sanic/sanic.py +++ b/sanic/sanic.py @@ -351,7 +351,7 @@ class Sanic: proto = "http" if ssl is not None: proto = "https" - log.info('Goin\' Fast @ {}://{}:{}'.format(proto, host, port)) + log.info('Goin\' Fast @ {}://{}:{}', proto, host, port) try: if workers == 1: @@ -382,9 +382,9 @@ class Sanic: before_stop=None, after_stop=None, ssl=None, sock=None, loop=None, protocol=HttpProtocol, backlog=100, stop_event=None): - ''' + """ Asynchronous version of `run`. - ''' + """ loop = get_event_loop() server_settings = { 'protocol': protocol, @@ -430,7 +430,7 @@ class Sanic: proto = "http" if ssl is not None: proto = "https" - log.info('Goin\' Fast @ {}://{}:{}'.format(proto, host, port)) + log.info('Goin\' Fast @ {}://{}:{}', proto, host, port) return await serve(**server_settings)