(self, header, line)
Tuples in Python source form for each row
Tuples in Python source form for each row
Tuples in Python source form for each row
def output_python(self, header, line):
        "Tuples in Python source form for each row"
        if header:
            if not self.header:
                return
            c = self.colour
            fmt = lambda x: c.header + self._fmt_python(x) + c.header_
        else:
            fmt = lambda x: self.colour.colour_value(x, self._fmt_python(x))
        self.write(self.stdout, '(' + ", ".join([fmt(l) for l in line]) + "),\n")
def output_python ( self , header , line ) : if header : if not self . header : return c = self . colour fmt = lambda x : c . header + self . _fmt_python ( x ) + c . header_ else : fmt = lambda x : self . colour . colour_value ( x , self . _fmt_python ( x ) ) self . write ( self . stdout , '(' + ", " . join ( [ fmt ( l ) for l in line ] ) + "),\n" )