Read a new line

def read_line(self, line):
        """Read a new line"""
        if self.ignore:
            return

        for i, char in enumerate(line):
            if char not in ['"', "'"]:
                continue
            # Is the char escaped?
            if line[i - 1:i] == '\\':
                continue

            if self.single == char:
                self.single = None
                continue
            if self.single is not None:
                continue

            if not self.python:
                continue

            if self.triple == char:
                if line[i - 2:i + 1] == 3 * char:
                    self.triple = None
                    continue
            if self.triple is not None:
                continue
            if line[i - 2:i + 1] == 3 * char:
                self.triple = char
                continue
            self.single = char

        # Line ended
        if self.python:
            self.single = None