Skip to content
Myr

optimize split_arg_string with extend(...) instead of a for loop system.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Vizonex · committed by Vizonex · parent 8a1b1a3 · Browse files · 1 file+1 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−2 removed

  • other:+1 added−2 removed

1 file+1 added−2 removed

modified:src/click/shell_completion.py+1 added-2 removed
503 unmodified lines
504 lex.commenters = ""505 out = []506507 try:508 for token in lex:509 out.append(token)508 out.extend(lex)509 except ValueError:510 # Raised when end-of-string is reached in an invalid state. Use511 # the partial token as-is. The quote or escape character is in512 # lex.state, not lex.token.
168 unmodified lines