From 5f0e05f3bf461b2583897691525b23ed17597e0c Mon Sep 17 00:00:00 2001 From: zenix Date: Wed, 12 Apr 2017 18:08:06 +0900 Subject: [PATCH] fix flake8 --- sanic/app.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sanic/app.py b/sanic/app.py index 7b0d8a35..0d048c35 100644 --- a/sanic/app.py +++ b/sanic/app.py @@ -17,7 +17,7 @@ from sanic.config import Config from sanic.constants import HTTP_METHODS from sanic.exceptions import ServerError, URLBuildError, SanicException from sanic.handlers import ErrorHandler -from sanic.log import log, netlog +from sanic.log import log from sanic.response import HTTPResponse, StreamingHTTPResponse from sanic.router import Router from sanic.server import serve, serve_multiple, HttpProtocol @@ -571,7 +571,7 @@ class Sanic: after_stop=after_stop, ssl=ssl, sock=sock, workers=workers, loop=loop, protocol=protocol, backlog=backlog, register_sys_signals=register_sys_signals, - has_log_file=log_config_path != None) + has_log_file=log_config_path is not None) try: self.is_running = True @@ -625,7 +625,7 @@ class Sanic: after_stop=after_stop, ssl=ssl, sock=sock, loop=loop or get_event_loop(), protocol=protocol, backlog=backlog, run_async=True, - has_log_file=log_config_path != None) + has_log_file=log_config_path is not None) return await serve(**server_settings)