Skip to content

Commit 2ba042b

Browse files
committed
replace async-timeout with asyncio.timeout
1 parent 0aebbd4 commit 2ba042b

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

geocachingapi/geocachingapi.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import json
66
import logging
77
import socket
8-
import async_timeout
98
import backoff
109

1110
from yarl import URL
@@ -95,7 +94,7 @@ async def _request(self, method, uri, **kwargs) -> ClientResponse:
9594
self._close_session = True
9695

9796
try:
98-
async with async_timeout.timeout(self.request_timeout):
97+
async with asyncio.timeout(self.request_timeout):
9998
response = await self._session.request(
10099
method,
101100
f"{url}",
@@ -341,4 +340,4 @@ async def __aenter__(self) -> GeocachingApi:
341340
async def __aexit__(self, *exc_info) -> None:
342341
"""Async exit."""
343342
await self.close()
344-
343+

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,9 @@ def read(*parts):
3232
"Operating System :: OS Independent",
3333
"Natural Language :: English",
3434
"Intended Audience :: Developers",
35-
"Programming Language :: Python :: 3.9",
3635
"Topic :: Software Development :: Libraries :: Python Modules",
3736
],
38-
python_requires='>=3.8',
37+
python_requires='>=3.11',
3938
zip_safe=False,
4039
include_package_data=True,
4140
use_scm_version=True,

0 commit comments

Comments
 (0)