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.url = gitea_url
self.requests = requests.Session() self.requests = requests.Session()
if cached: if cached:
self.requests.mount("http://", CachingHTTPAdapter()) # TODO: Use Python 3.10 compatible caching
self.requests.mount("https://", CachingHTTPAdapter()) pass
def __get_url(self, endpoint): def __get_url(self, endpoint):
url = self.url + "/api/v1" + endpoint url = self.url + "/api/v1" + endpoint

Wyświetl plik

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