def ssl_method(method):
 if (method in _SSL_PROTOCOLS):
  return _SSL_PROTOCOLS[method]
 else:
  try:
   return ssl.PROTOCOL_SSLv23
  except AttributeError:
   return _SSL_PROTOCOLS[0]

def ssl_method ( method ) : if ( method in _SSL_PROTOCOLS ) : return _SSL_PROTOCOLS [ method ] else : try : return ssl . PROTOCOL_SSLv23 except AttributeError : return _SSL_PROTOCOLS [ 0 ]
translate ssl acronym to a method value .