def ssl_potential():
 try:
  import ssl
 except ImportError:
  return []
 return [p[9:] for p in dir(ssl) if p.startswith('PROTOCOL_')]

def ssl_potential ( ) : try : import ssl except ImportError : return [ ] return [ p [ 9 : ] for p in dir ( ssl ) if p . startswith ( 'PROTOCOL_' ) ]
return a list of potentially supported ssl protocols .