Skip to content
Myr

#3927 fixes based on review

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Bastien Gérard · committed by Bastien Gérard · parent 7d8b87c · Browse files · 1 file+5 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+5 added−4 removed

  • other:+5 added−4 removed

1 file+5 added−4 removed

modified:requests/adapters.py+5 added-4 removed
221 unmodified lines
222 "invalid path: {0}".format(cert_loc))223224 conn.cert_reqs = 'CERT_REQUIRED'225226 if os.path.isdir(cert_loc):227 conn.ca_cert_dir = cert_loc228 else:226 if not os.path.isdir(cert_loc):227 conn.ca_certs = cert_loc228 else:229 conn.ca_cert_dir = cert_loc230 else:231 conn.cert_reqs = 'CERT_NONE'232 conn.ca_certs = None233 conn.ca_cert_dir = None234235 if cert:236 if not isinstance(cert, basestring):237 conn.cert_file, conn.key_file = cert237 conn.cert_file = cert[0]238 conn.key_file = cert[1]239 else:240 conn.cert_file = cert241 if conn.cert_file and not os.path.exists(conn.cert_file):242 raise IOError("Could not find the SSL certificate file, "
269 unmodified lines