def cert_verify(self, conn, url, verify, cert):
if url.lower().startswith('<STR_LIT>') and verify:<EOL><INDENT>cert_loc = None<EOL>if verify is not True:<EOL><INDENT>cert_loc = verify<EOL><DEDENT>if not cert_loc:<EOL><INDENT>cert_loc = DEFAULT_CA_BUNDLE_PATH<EOL><DEDENT>if not cert_loc:<EOL><INDENT>raise Exception("<STR_LIT>")<EOL><DEDENT>conn.cert_reqs = '<STR_LIT>'<EOL>conn.ca_certs = cert_loc<EOL><DEDENT>else:<EOL><INDENT>conn.cert_reqs = '<STR_LIT>'<EOL>conn.ca_certs = None<EOL><DEDENT>if cert:<EOL><INDENT>if not isinstance(cert, basestring):<EOL><INDENT>conn.cert_file = cert[<NUM_LIT:0>]<EOL>conn.key_file = cert[<NUM_LIT:1>]<EOL><DEDENT>else:<EOL><INDENT>conn.cert_file = cert<EOL><DEDENT><DEDENT>
Verify a SSL certificate. This method should not be called from user
        code, and is only exposed for use when subclassing the
        :class:`HTTPAdapter <requests.adapters.HTTPAdapter>`.

        :param conn: The urllib3 connection object associated with the cert.
        :param url: The requested URL.
        :param verify: Whether we should actually verify the certificate.
        :param cert: The SSL certificate to verify.