mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
removed backward compatibility for old aiohttp AccessLogger
This commit is contained in:
@@ -41,14 +41,10 @@ from aiohttp.web import StreamResponse
|
|||||||
from aiohttp.web import WebSocketResponse
|
from aiohttp.web import WebSocketResponse
|
||||||
from aiohttp.web import WSMsgType
|
from aiohttp.web import WSMsgType
|
||||||
from aiohttp.web import Application
|
from aiohttp.web import Application
|
||||||
|
from aiohttp.web import AccessLogger
|
||||||
from aiohttp.web import run_app
|
from aiohttp.web import run_app
|
||||||
from aiohttp.web import normalize_path_middleware
|
from aiohttp.web import normalize_path_middleware
|
||||||
|
|
||||||
try:
|
|
||||||
from aiohttp.web import AccessLogger # type: ignore
|
|
||||||
except ImportError:
|
|
||||||
from aiohttp.helpers import AccessLogger # type: ignore
|
|
||||||
|
|
||||||
from .logging import get_logger
|
from .logging import get_logger
|
||||||
|
|
||||||
from .errors import OperationError
|
from .errors import OperationError
|
||||||
|
|||||||
Reference in New Issue
Block a user