3 write = sys.stdout.write
10 WarningCol=[
False]*len(Data)
11 for [line,Warn]
in zip(Data,WarningCol):
17 for entry
in ColWidths:
19 for i
in range(entry):
25 assert Warn
in [
True,
False]
27 assert len(line)==len(ColWidths)
34 for [width, entry]
in zip(ColWidths,line):
39 print "\n\n\n Weird Data .. Bailing out\n\n" 41 for i
in range(width):
OutputIterator zip(InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, InputIterator2 last2, OutputIterator result, Compare comp)
def PrintLine(line, ColWidths, Warn, border)
def PrettyPrintTable(Headers, Data, ColWidths, WarningCol=[], border='*')
def PrintHLine(ColWidths, border)