def _unformat_data(cls, datastr, fmt=None): if fmt in ('line', 'brief'): return _strutil.unrepr(datastr), None #elif fmt == 'full': elif fmt == 'row': return datastr.split(','), None else: raise NotImplementedError(fmt)
def _parse_data(self, datastr, fmt=None): # XXX Handle other formats? return _strutil.unrepr(datastr), None