Only write the DUMMY_CA_CERT on OS X

pull/6568/head
Matt Martz 11 years ago
parent 3b5aa8bd30
commit 1d3d73a0b6

@ -137,8 +137,9 @@ class SSLValidationHandler(urllib2.BaseHandler):
tmp_fd, tmp_path = tempfile.mkstemp() tmp_fd, tmp_path = tempfile.mkstemp()
# Write the dummy ca cert # Write the dummy ca cert if we are running on Mac OS X
os.write(tmp_fd, DUMMY_CA_CERT) if platform == 'Darwin':
os.write(tmp_fd, DUMMY_CA_CERT)
# for all of the paths, find any .crt or .pem files # for all of the paths, find any .crt or .pem files
# and compile them into single temp file for use # and compile them into single temp file for use

Loading…
Cancel
Save