Tests/scripts/hook_validations/pack_unique_files.py
def _parse_file_into_list(self, file_name, delimiter='\n'):
        """Parse file's content to list, throw exception if can't"""
        file_content = self._read_file_content(file_name)
        try:
            if file_content:
                return file_content.split(delimiter)
        except ValueError:
            self._add_error('Could not parse the contents of "{}" file into a list'.format(file_name))

        return False
Parse file's content to list, throw exception if can't
Parse file's content to list, throw exception if can't
Parse file ' s content to list throw exception if can ' t
def _parse_file_into_list(self, file_name, delimiter='\n'):
        file_content = self._read_file_content(file_name)
        try:
            if file_content:
                return file_content.split(delimiter)
        except ValueError:
            self._add_error('Could not parse the contents of "{}" file into a list'.format(file_name))
        return False
def _parse_file_into_list ( self , file_name , delimiter = '\n' ) : file_content = self . _read_file_content ( file_name ) try : if file_content : return file_content . split ( delimiter ) except ValueError : self . _add_error ( 'Could not parse the contents of "{}" file into a list' . format ( file_name ) ) return False
Parse file's content to list, throw exception if can't
Parse file ' s content to list throw exception if can ' t
"""Parse file's content to list, throw exception if can't"""
self
file_name
delimiter