From c2dbb0a3c59252b905e1ab8ece98283e46a3c19d Mon Sep 17 00:00:00 2001 From: Hugo Date: Mon, 9 Apr 2018 17:59:58 +0300 Subject: [PATCH] Use a single version number, no need for confusing PIL version 1.1.7 --- Tests/test_000_sanity.py | 2 -- src/PIL/__init__.py | 5 +---- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/Tests/test_000_sanity.py b/Tests/test_000_sanity.py index 67aff8ecc..387b5c246 100644 --- a/Tests/test_000_sanity.py +++ b/Tests/test_000_sanity.py @@ -11,8 +11,6 @@ class TestSanity(PillowTestCase): # Make sure we have the binary extension im = PIL.Image.core.new("L", (100, 100)) - self.assertEqual(PIL.Image.VERSION[:3], '1.1') - # Create an image and do stuff with it. im = PIL.Image.new("1", (100, 100)) self.assertEqual((im.mode, im.size), ('1', (100, 100))) diff --git a/src/PIL/__init__.py b/src/PIL/__init__.py index 76188a0a3..62ad95248 100644 --- a/src/PIL/__init__.py +++ b/src/PIL/__init__.py @@ -13,10 +13,7 @@ from . import version -VERSION = '1.1.7' # PIL Version -PILLOW_VERSION = version.__version__ - -__version__ = PILLOW_VERSION +PILLOW_VERSION = VERSION = __version__ = version.__version__ _plugins = ['BlpImagePlugin', 'BmpImagePlugin',