diff --git a/src/PIL/ImageShow.py b/src/PIL/ImageShow.py index 04725bcfb..871e215a7 100644 --- a/src/PIL/ImageShow.py +++ b/src/PIL/ImageShow.py @@ -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: