aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/urllib3/py3/patches/01-arcadia.patch
blob: 8eea2e718be621f1dd89181c93b405586715307b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
--- contrib/python/urllib3/py3/urllib3/connection.py	(index)
+++ contrib/python/urllib3/py3/urllib3/connection.py	(working tree)
@@ -349,7 +349,8 @@ class HTTPSConnection(HTTPConnection):
         self.key_password = key_password
         self.assert_hostname = assert_hostname
         self.assert_fingerprint = assert_fingerprint
-        self.ca_certs = ca_certs and os.path.expanduser(ca_certs)
+        self.ca_certs = os.path.expanduser(ca_certs) \
+            if isinstance(ca_certs, six.string_types) else ca_certs
         self.ca_cert_dir = ca_cert_dir and os.path.expanduser(ca_cert_dir)
         self.ca_cert_data = ca_cert_data