File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -50,8 +50,8 @@ The :mod:`!shlex` module defines the following functions:
5050 string that can safely be used as one token in a shell command line, for
5151 cases where you cannot use a list.
5252
53- If *force * is :const: `True ` then *s * will be quoted even if it is already
54- safe for a shell without being quoted.
53+ If *force * is :const: `True `, then *s * is unconditionally quoted,
54+ even if it is already safe for a shell without being quoted.
5555
5656 .. _shlex-quote-warning :
5757
Original file line number Diff line number Diff line change @@ -320,8 +320,8 @@ def join(split_command):
320320def quote (s , * , force = False ):
321321 """Return a shell-escaped version of the string *s*.
322322
323- If *force* is *True* then *s* will be quoted even if it is
324- already safe for a shell without being quoted.
323+ If *force* is *True*, then *s* is unconditionally quoted,
324+ even if it is already safe for a shell without being quoted.
325325 """
326326 if not s :
327327 return "''"
You can’t perform that action at this time.
0 commit comments