def _usablePyOpenSSL(version):
 (major, minor) = (int(part) for part in version.split('.')[:2])
 return ((major, minor) >= (0, 12))

def _usablePyOpenSSL ( version ) : ( major , minor ) = ( int ( part ) for part in version . split ( '.' ) [ : 2 ] ) return ( ( major , minor ) >= ( 0 , 12 ) )
check pyopenssl version string whether we can use it for host verification .