From 8f965acf684736761d3664c174d9804cb16a5712 Mon Sep 17 00:00:00 2001 From: Hugo Date: Wed, 11 Apr 2018 12:16:34 +0300 Subject: [PATCH] Deprecate PILLOW_VERSION and VERSION, use __version__ instead --- src/PIL/Image.py | 1 + src/PIL/__init__.py | 1 + 2 files changed, 2 insertions(+) diff --git a/src/PIL/Image.py b/src/PIL/Image.py index 59ffadd6ad5..b2246430e5d 100644 --- a/src/PIL/Image.py +++ b/src/PIL/Image.py @@ -24,6 +24,7 @@ # See the README file for information on usage and redistribution. # +# PILLOW_VERSION and VERSION are deprecated and will be removed in Pillow 6.0.0. Use __version__ instead. from . import VERSION, PILLOW_VERSION, __version__, _plugins import logging diff --git a/src/PIL/__init__.py b/src/PIL/__init__.py index 76188a0a39f..e8c6d970a75 100644 --- a/src/PIL/__init__.py +++ b/src/PIL/__init__.py @@ -13,6 +13,7 @@ from . import version +# PILLOW_VERSION and VERSION are deprecated and will be removed in Pillow 6.0.0. Use __version__ instead. VERSION = '1.1.7' # PIL Version PILLOW_VERSION = version.__version__