parameters: (candidate)
return_statement: return candidate
docstring: like resolve_cert_reqs
docstring_summary: like resolve_cert_reqs
docstring_tokens: like resolve_cert_reqs
function: def resolve_ssl_version(candidate):
      """
      like resolve_cert_reqs
      """
      if candidate is None:
          return PROTOCOL_TLS
  
      if isinstance(candidate, str):
          res = getattr(ssl, candidate, None)
          if res is None:
              res = getattr(ssl, 'PROTOCOL_' + candidate)
          return res
  
      return candidate
function_tokens: def resolve_ssl_version ( candidate ) : if candidate is None : return PROTOCOL_TLS if isinstance ( candidate , str ) : res = getattr ( ssl , candidate , None ) if res is None : res = getattr ( ssl , 'PROTOCOL_' + candidate ) return res return candidate