Skip to content

Commit 50ea828

Browse files
committed
Another update to docs
- linkify NEWS - the shlex class description should also mention bytes
1 parent d37f443 commit 50ea828

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

‎Doc/library/shlex.rst‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ The :mod:`!shlex` module defines the following class:
127127
object. The initialization argument, if present, specifies where to read
128128
characters from. It must be a file-/stream-like object with
129129
:meth:`~io.TextIOBase.read` and :meth:`~io.TextIOBase.readline` methods, or
130-
a string. If no argument is given, input will be taken from ``sys.stdin``.
130+
a string or a file-like object or bytes. If no argument is given, input
131+
will be taken from ``sys.stdin``.
131132
The second optional argument is a filename string, which sets the initial
132133
value of the :attr:`~shlex.infile` attribute. If the *instream*
133134
argument is omitted or equal to ``sys.stdin``, this second argument
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Support shlex parsing byte streams for posix=False or whitespace_split=True.
2-
Removes the limitation that bytes are not supported by shlex split/quote.
1+
Support :class:`~shlex.shlex` parsing byte streams for posix=False or whitespace_split=True.
2+
Removes the limitation that bytes are not supported by shlex :func:`quote` and :func:`split`.

0 commit comments

Comments
 (0)