From 376a790049c004f389bda288a2be1c02a00d97ba Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Mon, 27 Dec 2021 11:37:31 +1100 Subject: [PATCH] Image.NONE is only used for resampling and dithers --- docs/reference/Image.rst | 1 - src/PIL/Image.py | 2 -- 2 files changed, 3 deletions(-) diff --git a/docs/reference/Image.rst b/docs/reference/Image.rst index c80b28a984b..2a107564cdb 100644 --- a/docs/reference/Image.rst +++ b/docs/reference/Image.rst @@ -378,7 +378,6 @@ Classes Constants --------- -.. data:: NONE .. data:: MAX_IMAGE_PIXELS Set to 89,478,485, approximately 0.25GB for a 24-bit (3 bpp) image. diff --git a/src/PIL/Image.py b/src/PIL/Image.py index 0fca3fa5cc4..3fa0d7cad13 100644 --- a/src/PIL/Image.py +++ b/src/PIL/Image.py @@ -138,8 +138,6 @@ def isImageType(t): # # Constants -NONE = 0 - # transpose FLIP_LEFT_RIGHT = 0 FLIP_TOP_BOTTOM = 1