def _validate_family(family):
 if ((sys.platform != 'win32') and (family == 'AF_PIPE')):
  raise ValueError(('Family %s is not recognized.' % family))
 if ((sys.platform == 'win32') and (family == 'AF_UNIX')):
  if (not hasattr(socket, family)):
   raise ValueError(('Family %s is not recognized.' % family))

def _validate_family ( family ) : if ( ( sys . platform != 'win32' ) and ( family == 'AF_PIPE' ) ) : raise ValueError ( ( 'Family %s is not recognized.' % family ) ) if ( ( sys . platform == 'win32' ) and ( family == 'AF_UNIX' ) ) : if ( not hasattr ( socket , family ) ) : raise ValueError ( ( 'Family %s is not recognized.' % family ) )
checks if the family is valid for the current environment .