Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Doc/library/importlib.resources.abc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@
*mode* may be 'r' or 'rb' to open as text or binary. Return a handle
suitable for reading (same as :attr:`pathlib.Path.open`).

When opening as text, accepts encoding parameters such as those
accepted by :class:`io.TextIOWrapper`.
When opening as text, accepts the *encoding*, *errors*, and *newline*
keyword arguments with the same meanings as in :class:`io.TextIOWrapper`.

.. method:: read_bytes()

Expand Down
4 changes: 2 additions & 2 deletions Lib/importlib/resources/abc.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ def open(self, mode: str = 'r', *args: Any, **kwargs: Any) -> TextIO | BinaryIO:
mode may be 'r' or 'rb' to open as text or binary. Return a handle
suitable for reading (same as pathlib.Path.open).

When opening as text, accepts encoding parameters such as those
accepted by io.TextIOWrapper.
When opening as text, accepts the encoding, errors, and newline
keyword arguments with the same meanings as in io.TextIOWrapper.
"""

@property
Expand Down
Loading