From 09eb7200668bd0b655fb33429e89c726de7b0d81 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Wed, 9 Feb 2022 22:57:33 +1100 Subject: [PATCH] Reverted docstring and changed return values instead --- src/PIL/ImageShow.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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: