(self, line)
| 205 | return line.split(self.delimiter) |
| 206 | |
| 207 | def _fixedwidth_splitter(self, line): |
| 208 | if self.comments is not None: |
| 209 | line = line.split(self.comments)[0] |
| 210 | line = line.strip("\r\n") |
| 211 | if not line: |
| 212 | return [] |
| 213 | fixed = self.delimiter |
| 214 | slices = [slice(i, i + fixed) for i in range(0, len(line), fixed)] |
| 215 | return [line[s] for s in slices] |
| 216 | |
| 217 | def _variablewidth_splitter(self, line): |
| 218 | if self.comments is not None: |