mirror of
https://github.com/frappe/gunicorn.git
synced 2026-07-08 05:31:29 +08:00
Fix lint issues: remove unused imports
This commit is contained in:
parent
955893b6ab
commit
9306db1d20
@ -10,7 +10,6 @@ and dispatch to ASGI applications.
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
import asyncio
|
import asyncio
|
||||||
import ssl
|
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
from gunicorn.asgi.unreader import AsyncUnreader
|
from gunicorn.asgi.unreader import AsyncUnreader
|
||||||
|
|||||||
@ -11,7 +11,6 @@ asyncio for non-blocking I/O.
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
import asyncio
|
import asyncio
|
||||||
from io import BytesIO
|
|
||||||
|
|
||||||
from .errors import (
|
from .errors import (
|
||||||
HTTP2Error, HTTP2ProtocolError, HTTP2ConnectionError,
|
HTTP2Error, HTTP2ProtocolError, HTTP2ConnectionError,
|
||||||
|
|||||||
@ -10,9 +10,7 @@ Provides a Request-compatible interface for HTTP/2 streams.
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
from io import BytesIO
|
from io import BytesIO
|
||||||
from urllib.parse import unquote, urlparse
|
|
||||||
|
|
||||||
from gunicorn.http.body import Body, LengthReader
|
|
||||||
from gunicorn.util import split_request_uri
|
from gunicorn.util import split_request_uri
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -12,7 +12,7 @@ Each HTTP/2 stream represents a single request/response exchange.
|
|||||||
from enum import Enum, auto
|
from enum import Enum, auto
|
||||||
from io import BytesIO
|
from io import BytesIO
|
||||||
|
|
||||||
from .errors import HTTP2StreamError, HTTP2StreamClosed
|
from .errors import HTTP2StreamError
|
||||||
|
|
||||||
|
|
||||||
class StreamState(Enum):
|
class StreamState(Enum):
|
||||||
|
|||||||
@ -454,7 +454,7 @@ class ThreadWorker(base.Worker):
|
|||||||
except OSError as e:
|
except OSError as e:
|
||||||
if e.errno not in (errno.EPIPE, errno.ECONNRESET, errno.ENOTCONN):
|
if e.errno not in (errno.EPIPE, errno.ECONNRESET, errno.ENOTCONN):
|
||||||
self.log.exception("HTTP/2 socket error")
|
self.log.exception("HTTP/2 socket error")
|
||||||
except Exception as e:
|
except Exception:
|
||||||
self.log.exception("HTTP/2 connection error")
|
self.log.exception("HTTP/2 connection error")
|
||||||
|
|
||||||
return False
|
return False
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user