lint: fix isort and flake8 complains

This commit is contained in:
Yun Xu 2019-06-03 22:12:10 -07:00
parent f21db60859
commit 2631f10c5e

View File

@ -23,7 +23,7 @@ from sanic.exceptions import (
ServiceUnavailable,
)
from sanic.log import access_logger, logger
from sanic.request import Request, StreamBuffer, EXPECT_HEADER
from sanic.request import EXPECT_HEADER, Request, StreamBuffer
from sanic.response import HTTPResponse
@ -338,7 +338,11 @@ class HttpProtocol(asyncio.Protocol):
if expect.lower() == "100-continue":
self.transport.write(b"HTTP/1.1 100 Continue\r\n\r\n")
else:
self.write_error(HeaderExpectationFailed("Unknow Expect: {expect}".format(expect=expect)))
self.write_error(
HeaderExpectationFailed(
"Unknow Expect: {expect}".format(expect=expect)
)
)
def on_body(self, body):
if self.is_request_stream and self._is_stream_handler: