Skip to content

Commit

Permalink
Reverted docstring and changed return values instead
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Feb 9, 2022
1 parent 02294bf commit 09eb720
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/PIL/ImageShow.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ def show(image, title=None, **options):
:param image: An image object.
:param title: Optional title. Not all viewers can display the title.
:param \**options: Additional viewer options.
:returns: ``1`` if a suitable viewer was found, ``0`` otherwise.
:returns: ``True`` if a suitable viewer was found, ``False`` otherwise.
"""
for viewer in _viewers:
if viewer.show(image, title=title, **options):
return 1
return 0
return True
return False


class Viewer:
Expand Down

0 comments on commit 09eb720

Please sign in to comment.