From 84ee93f7bfec22028581b68c5e899197b24be4f6 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Mon, 13 Sep 2021 17:14:59 +1000 Subject: [PATCH] Moved _info function into docstring --- selftest.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/selftest.py b/selftest.py index 8d77cc5a9..4ebd7cc00 100755 --- a/selftest.py +++ b/selftest.py @@ -14,17 +14,13 @@ except AttributeError: pass -def _info(im): - im.load() - return im.format, im.mode, im.size - - def testimage(): """ PIL lets you create in-memory images with various pixel types: >>> from PIL import Image, ImageDraw, ImageFilter, ImageMath >>> im = Image.new("1", (128, 128)) # monochrome + >>> def _info(im): return (im.format, im.mode, im.size) >>> _info(im) (None, '1', (128, 128)) >>> _info(Image.new("L", (128, 128))) # grayscale (luminance)