@@ -18,19 +18,19 @@ The :mod:`!shlex` module defines the following functions:
1818
1919.. function :: split(s, comments=False, posix=True)
2020
21- Split the string or byte-like object *s * using shell-like syntax. If
22- * comments * is :const: `False ` (the default), the parsing of comments in the
23- given string will be disabled (setting the :attr: `~shlex.commenters `
24- attribute of the :class: `~shlex.shlex ` instance to the empty string). This
25- function operates in POSIX mode by default, but uses non-POSIX mode if the
26- * posix * argument is false.
21+ Split the string or bytes *s * using shell-like syntax. If * comments * is
22+ :const: `False ` (the default), the parsing of comments in the given string
23+ will be disabled (setting the :attr: `~shlex.commenters ` attribute of the
24+ :class: `~shlex.shlex ` instance to the empty string). This function operates
25+ in POSIX mode by default, but uses non-POSIX mode if the * posix * argument is
26+ false.
2727
2828 .. versionchanged :: 3.12
2929 Passing ``None `` for *s * argument now raises an exception, rather than
3030 reading :data: `sys.stdin `.
3131
3232 .. versionchanged :: 3.16
33- Support byte-like object as input.
33+ Support bytes as input.
3434
3535.. function :: join(split_command)
3636
@@ -47,14 +47,14 @@ The :mod:`!shlex` module defines the following functions:
4747 .. versionadded :: 3.8
4848
4949 .. versionchanged :: 3.16
50- Support sequence of byte-like objects as input.
50+ Support sequence of bytes as input.
5151
5252
5353.. function :: quote(s, *, force=False)
5454
55- Return a shell-escaped version of the string or byte-like object *s *. The
56- returned value is a string or bytes object that can safely be used as one
57- token in a shell command line, for cases where you cannot use a list.
55+ Return a shell-escaped version of the string or bytes *s *. The returned
56+ value is a string or bytes object that can safely be used as one token in a
57+ shell command line, for cases where you cannot use a list.
5858
5959 If *force * is :const: `True `, then *s * is unconditionally quoted,
6060 even if it is already safe for a shell without being quoted.
@@ -116,7 +116,7 @@ The :mod:`!shlex` module defines the following functions:
116116
117117 .. versionchanged :: 3.16
118118 The *force * keyword was added.
119- Support byte-like object as input.
119+ Support bytes as input.
120120
121121The :mod: `!shlex ` module defines the following class:
122122
@@ -152,7 +152,7 @@ The :mod:`!shlex` module defines the following class:
152152 The *punctuation_chars * parameter was added.
153153
154154 .. versionchanged :: 3.16
155- Support byte-like object or binary IO as *instream *.
155+ Support bytes or binary IO as *instream *.
156156
157157.. seealso ::
158158
0 commit comments