MCPcopy Create free account
hub / github.com/numpy/numpy / _delimited_splitter

Method _delimited_splitter

numpy/lib/_iotools.py:198–205  ·  view source on GitHub ↗

Chop off comments, strip, and split at delimiter.

(self, line)

Source from the content-addressed store, hash-verified

196 self.encoding = encoding
197
198 def _delimited_splitter(self, line):
199 """Chop off comments, strip, and split at delimiter. """
200 if self.comments is not None:
201 line = line.split(self.comments)[0]
202 line = line.strip(" \r\n")
203 if not line:
204 return []
205 return line.split(self.delimiter)
206
207 def _fixedwidth_splitter(self, line):
208 if self.comments is not None:

Callers

nothing calls this directly

Calls 2

stripMethod · 0.80
splitMethod · 0.45

Tested by

no test coverage detected