Skip to content

Commit

Permalink
Use asyncio.timeout instead of async_timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
joostlek committed Dec 6, 2023
1 parent b2eff66 commit f397a1f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/python_opensky/opensky.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from importlib import metadata
from typing import TYPE_CHECKING, Any, cast

import async_timeout
from aiohttp import BasicAuth, ClientError, ClientResponseError, ClientSession
from aiohttp.hdrs import METH_GET
from yarl import URL
Expand Down Expand Up @@ -114,7 +113,7 @@ async def _request(
self._close_session = True

try:
async with async_timeout.timeout(self.request_timeout):
async with asyncio.timeout(self.request_timeout):
response = await self.session.request(
METH_GET,
url.with_query(data),
Expand Down

0 comments on commit f397a1f

Please sign in to comment.