Skip to content

Commit 92ddc7e

Browse files
committed
build: fix for Python >= 3.11
1 parent 661e49a commit 92ddc7e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

aiohttp_metwork_middlewares/__init__.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
from aiohttp import web
2-
import os
2+
import os, sys
33
from mflog import get_logger
4-
from async_timeout import timeout
4+
5+
if sys.version_info < (3, 11):
6+
from async_timeout import timeout
7+
else:
8+
from asyncio import timeout
59

610

711
MFMODULE = os.environ['MFMODULE']

0 commit comments

Comments
 (0)