MCPcopy Create free account
hub / github.com/Distrotech/reportlab / parseData

Method parseData

tools/pythonpoint/pythonpoint.py:667–682  ·  view source on GitHub ↗

Try to make sense of the table data!

(self)

Source from the content-addressed store, hash-verified

665 return t
666
667 def parseData(self):
668 """Try to make sense of the table data!"""
669 rawdata = string.strip(string.join(self.rawBlocks, ''))
670 lines = string.split(rawdata, self.rowDelim)
671 #clean up...
672 lines = map(string.strip, lines)
673 self.data = []
674 for line in lines:
675 cells = string.split(line, self.fieldDelim)
676 self.data.append(cells)
677
678 #get the width list if not given
679 if not self.widths:
680 self.widths = [None] * len(self.data[0])
681 if not self.heights:
682 self.heights = [None] * len(self.data)
683
684## import pprint
685## print 'table data:'

Callers 1

getFlowableMethod · 0.95

Calls 2

appendMethod · 0.80
splitMethod · 0.45

Tested by

no test coverage detected