Skip to content

Commit a024016

Browse files
committed
Update docstring
1 parent c837078 commit a024016

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/PIL/Image.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3598,10 +3598,12 @@ def open(
35983598
and be opened in binary mode. The file object will also seek to zero
35993599
before reading.
36003600
:param mode: The mode. If given, this argument must be "r".
3601-
:param formats: A list or tuple of formats to attempt to load the file in, e.g.
3602-
("JPEG", "GIF"). This can be used to restrict the set of formats checked.
3601+
:param formats: A list or tuple of formats to attempt to load the file in, for
3602+
example, ``("JPEG", "GIF")``. This can be used to restrict the set of formats
3603+
checked.
36033604
3604-
To exclude a format, start the format with "!", e.g. ("!EPS", "!PSD").
3605+
To exclude a format, start the format with "!", for example,
3606+
``("!EPS", "!PSD")``.
36053607
36063608
Pass ``None`` to try all supported formats.
36073609

0 commit comments

Comments
 (0)