Updated return values to match docstring

This commit is contained in:
Andrew Murray 2022-02-12 07:49:20 +11:00
parent 1646326506
commit 70a17080e4

View File

@ -54,8 +54,8 @@ def show(image, title=None, **options):
""" """
for viewer in _viewers: for viewer in _viewers:
if viewer.show(image, title=title, **options): if viewer.show(image, title=title, **options):
return 1 return True
return 0 return False
class Viewer: class Viewer: