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.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
|
||||
|
|
|
@ -1,3 +1,2 @@
|
|||
requests
|
||||
httpcache
|
||||
pytest
|
||||
|
|
Ładowanie…
Reference in New Issue