removed httpcache for python 3.10 compatibility

pull/11/head
Langenfeld 2021-12-09 17:34:09 +01:00
rodzic 05d906148a
commit 70a5956be4
2 zmienionych plików z 2 dodań i 3 usunięć

Wyświetl plik

@ -760,8 +760,8 @@ class Gitea:
self.url = gitea_url
self.requests = requests.Session()
if cached:
self.requests.mount("http://", CachingHTTPAdapter())
self.requests.mount("https://", CachingHTTPAdapter())
# TODO: Use Python 3.10 compatible caching
pass
def __get_url(self, endpoint):
url = self.url + "/api/v1" + endpoint

Wyświetl plik

@ -1,3 +1,2 @@
requests
httpcache
pytest