def _parse_line(self, line, loc):
        if line:
            tag, data = line[0:2], line[4:]
        else:
            tag, data = '--', None
        if tag == 'MV':
            if '(VG)' in data or '{' in data:
                self.last_title = None
                # FIXME: Do not output plots for video games and TV episodes.
            else:
                self.last_title = data
                self.title_begin = loc
                assert(not self.last_plot)
        elif not self.last_title:
            return ()
            ## Skip to the next title
            #try:
            #    _skip_to(self.fileobj, '-'*79, 0) # FIXME
            #except SyntaxError:
            #    # End-of-file
            #    return None
        elif tag == 'PL':
            self.last_plot.append(data)
        elif self.last_plot:
            # Return the plot summary for this title
            assert(self.last_title)
            title = self.last_title
            plot = self.last_plot
            self.last_plot = []

            return (title, self.title_begin, (plot, None))
            #data if tag == 'BY' else None) # FIXME: bylines
        return ()
dataset/ETHPy150Open nandhp/python-imdb/imdb/parsers.py/IMDbPlotParser._parse_line/original