Corrected return values in docstring

This commit is contained in:
Andrew Murray 2022-02-09 16:52:19 +11:00
parent 4fc553ccfb
commit a568eecc82

View File

@ -50,7 +50,7 @@ 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: ``True`` if a suitable viewer was found, ``False`` otherwise.
:returns: ``1`` if a suitable viewer was found, ``0`` otherwise.
"""
for viewer in _viewers:
if viewer.show(image, title=title, **options):