Skip to content

Commit

Permalink
PILLOW_VERSION will be removed in a future release
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Apr 22, 2018
1 parent 7fd91f1 commit 3daabaa
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/releasenotes/5.2.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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``
Expand Down
4 changes: 3 additions & 1 deletion src/PIL/Image.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 3 additions & 1 deletion src/PIL/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__

Expand Down

0 comments on commit 3daabaa

Please sign in to comment.