Example #1
0
 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)
Example #2
0
 def _parse_data(self, datastr, fmt=None):
     # XXX Handle other formats?
     return _strutil.unrepr(datastr), None