

def resolve_ssl_version(candidate):
    '\n    like resolve_cert_reqs\n    '
    if (candidate is None):
        return PROTOCOL_SSLv23
    if isinstance(candidate, str):
        res = getattr(ssl, candidate, None)
        if (res is None):
            res = getattr(ssl, ('PROTOCOL_' + candidate))
        return res
    return candidate

dataset/ETHPy150Open Bolton-and-Menk-GIS/restapi/restapi/requests/packages/urllib3/util.py resolve_ssl_version/original