Reverted docstring and changed return values instead

This commit is contained in:
Andrew Murray 2022-02-09 22:57:33 +11:00
parent 02294bf612
commit 09eb720066

View File

@ -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: