def clean_file(self):
        """Analyse the uploaded file, and return the parsed lines.

        Returns:
            tuple of tuples of cells content (as text).
        """
        data = self.cleaned_data['file']

        available_parsers = self.get_parsers()

        for parser in available_parsers:
            try:
                return parser.parse_file(data)
            except parsers.ParserError:
                pass

        raise forms.ValidationError(
            "No parser could read the file. Tried with parsers %s." %
            (", " % (force_text(p) for p in available_parsers)))
Analyse the uploaded file, and return the parsed lines.

        Returns:
            tuple of tuples of cells content (as text).