Skip to content
Merged
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
5 changes: 3 additions & 2 deletions PIL/Image.py
Original file line number Diff line number Diff line change
Expand Up @@ -2268,8 +2268,9 @@ def open(fp, mode="r"):
:py:func:`~PIL.Image.new`.

:param fp: A filename (string), pathlib.Path object or a file object.
The file object must implement :py:meth:`~file.read`, :py:meth:`~file.seek`,
and :py:meth:`~file.tell` methods, and be opened in binary mode.
The file object must implement :py:meth:`~file.read`,
:py:meth:`~file.seek`, and :py:meth:`~file.tell` methods,
and be opened in binary mode.
:param mode: The mode. If given, this argument must be "r".
:returns: An :py:class:`~PIL.Image.Image` object.
:exception IOError: If the file cannot be found, or the image cannot be
Expand Down