mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-20 04:04:45 +03:00
Reverted docstring and changed return values instead
This commit is contained in:
parent
02294bf612
commit
09eb720066
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user