parameters: (self, old_name, new_name)
docstring: Raises ValueError if old_name does not exist.
docstring_summary: Raises ValueError if old_name does not exist.
docstring_tokens: Raises ValueError if old_name does not exist .
function: def renameFamily(self, old_name, new_name):
        """
        Raises ValueError if old_name does not exist.
        """
        self._checkFamilyName(new_name)
        family_list = self._family_list
        if old_name not in family_list:
          raise ValueError('Unknown family')
        self._family_list = tuple(
          new_name if x == old_name else x
          for x in family_list
        )
function_tokens: def renameFamily ( self , old_name , new_name ) : self . _checkFamilyName ( new_name ) family_list = self . _family_list if old_name not in family_list : raise ValueError ( 'Unknown family' ) self . _family_list = tuple ( new_name if x == old_name else x for x in family_list )