| 20 | pass |
| 21 | |
| 22 | class DictCSVParser(CSVParser): |
| 23 | def __init__(self, types): |
| 24 | self.types = types |
| 25 | |
| 26 | def make_record(self, headers, row): |
| 27 | return { name: func(val) for name, func, val in zip(headers, self.types, row) } |
| 28 | |
| 29 | class InstanceCSVParser(CSVParser): |
| 30 | def __init__(self, cls): |