MCPcopy Index your code
hub / github.com/python/cpython / oldSplit

Method oldSplit

Lib/test/test_shlex.py:157–164  ·  view source on GitHub ↗
(self, s)

Source from the content-addressed store, hash-verified

155 (data[i][0], l, data[i][1:]))
156
157 def oldSplit(self, s):
158 ret = []
159 lex = shlex.shlex(io.StringIO(s))
160 tok = lex.get_token()
161 while tok:
162 ret.append(tok)
163 tok = lex.get_token()
164 return ret
165
166 def testSplitNone(self):
167 with self.assertRaises(ValueError):

Callers 1

testCompatMethod · 0.95

Calls 2

get_tokenMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected