kopia lustrzana https://github.com/Langenfeld/py-gitea
removed httpcache for python 3.10 compatibility
rodzic
05d906148a
commit
70a5956be4
|
@ -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
|
||||||
|
|
|
@ -1,3 +1,2 @@
|
||||||
requests
|
requests
|
||||||
httpcache
|
|
||||||
pytest
|
pytest
|
||||||
|
|
Ładowanie…
Reference in New Issue