blob: 29a39586132a9b95cdcc3561b49f7f43f8e23b8f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
--- contrib/python/urllib3/urllib3/connection.py (index)
+++ contrib/python/urllib3/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
|