From 4605a7c7ca0638cf278fd58dd019e37b1ad19439 Mon Sep 17 00:00:00 2001 From: Taiju Yamada Date: Fri, 8 Nov 2024 10:30:20 +0900 Subject: [PATCH 1/2] support requests 2.32 --- python/mujinwebstackclient/unixsocketadapter.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/python/mujinwebstackclient/unixsocketadapter.py b/python/mujinwebstackclient/unixsocketadapter.py index 5c7743f..775227c 100644 --- a/python/mujinwebstackclient/unixsocketadapter.py +++ b/python/mujinwebstackclient/unixsocketadapter.py @@ -64,3 +64,11 @@ def close(self): def get_connection(self, url, proxies=None): assert not proxies, 'proxies not supported for unix socket' return self._connectionPool + + def get_connection_with_tls_context(self, request, verify, proxies=None, cert=None): + ''' + To support requests>=2.32.2 (Note that 2.32.0 and 2.32.1 are not supported) + + https://github.com/psf/requests/pull/6710 + ''' + return self.get_connection(request.url, proxies=proxies) \ No newline at end of file From 05b4377b3f46a34f877ddc934778d093bdea9f0a Mon Sep 17 00:00:00 2001 From: Taiju Yamada Date: Fri, 8 Nov 2024 15:13:58 +0900 Subject: [PATCH 2/2] Resave --- python/mujinwebstackclient/unixsocketadapter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/mujinwebstackclient/unixsocketadapter.py b/python/mujinwebstackclient/unixsocketadapter.py index 775227c..e6aeeb2 100644 --- a/python/mujinwebstackclient/unixsocketadapter.py +++ b/python/mujinwebstackclient/unixsocketadapter.py @@ -71,4 +71,4 @@ def get_connection_with_tls_context(self, request, verify, proxies=None, cert=No https://github.com/psf/requests/pull/6710 ''' - return self.get_connection(request.url, proxies=proxies) \ No newline at end of file + return self.get_connection(request.url, proxies=proxies)