INNER CODE UNIT · Python
value
pypa/pipx · src/pipx/main.py:226
value = value[1:-1]
lexer: Final[shlex.shlex] = shlex.shlex(value, posix=True)
lexer.whitespace_split = True
lexer.commenters = ""
if WINDOWS:
# posix=False leaves the quotes inside each token and pip then reads them as part of the path; posix quoting
# without escapes keeps the backslash a path separator instead
lexer.escape = ""
try:
return list(lexer)
except ValueError as exc:
msg = f"invalid pip arguments: {exc}"
raise PipxError(msg) from exc
def _non_negative_int(value: str) -> int:
msg = "--cooldown must be a non-negative integer"
try: