MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / split

Function split

tools/python-3.11.9-amd64/Lib/shlex.py:305–315  ·  view source on GitHub ↗

Split the string *s* using shell-like syntax.

(s, comments=False, posix=True)

Source from the content-addressed store, hash-verified

303 return token
304
305def split(s, comments=False, posix=True):
306 """Split the string *s* using shell-like syntax."""
307 if s is None:
308 import warnings
309 warnings.warn("Passing None for 's' to shlex.split() is deprecated.",
310 DeprecationWarning, stacklevel=2)
311 lex = shlex(s, posix=posix)
312 lex.whitespace_split = True
313 if not comments:
314 lex.commenters = ''
315 return list(lex)
316
317
318def join(split_command):

Callers 3

split_prepMethod · 0.50
splitFunction · 0.50
split_prepMethod · 0.50

Calls 3

shlexClass · 0.85
listFunction · 0.85
warnMethod · 0.45

Tested by

no test coverage detected