PILLOW_VERSION will be removed in a future release

This commit is contained in:
Hugo 2018-04-22 22:00:39 +03:00
parent c18dce5625
commit ef9bf76ce8
3 changed files with 8 additions and 4 deletions

View File

@ -7,8 +7,8 @@ API Changes
Deprecations
^^^^^^^^^^^^
These version constants have been deprecated and will be removed in the next
major release:
These version constants have been deprecated. ``VERSION`` will be removed in
Pillow 6.0.0, and ``PILLOW_VERSION`` will be removed in a future release.
* ``PIL.VERSION`` (old PIL version 1.1.7)
* ``PIL.PILLOW_VERSION``

View File

@ -24,7 +24,9 @@
# 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.
# VERSION is deprecated and will be removed in Pillow 6.0.0.
# PILLOW_VERSION is deprecated and will be removed in a future release.
# Use __version__ instead.
from . import VERSION, PILLOW_VERSION, __version__, _plugins
from ._util import py3

View File

@ -13,7 +13,9 @@
from . import _version
# PILLOW_VERSION and VERSION are deprecated and will be removed in Pillow 6.0.0. Use __version__ instead.
# VERSION is deprecated and will be removed in Pillow 6.0.0.
# PILLOW_VERSION is deprecated and will be removed in a future release.
# Use __version__ instead.
VERSION = '1.1.7' # PIL Version
PILLOW_VERSION = __version__ = _version.__version__