Skip to content

Commit

Permalink
Merge pull request #3624 from hugovk/rm-VERSION
Browse files Browse the repository at this point in the history
Remove deprecated VERSION
  • Loading branch information
radarhere committed Mar 2, 2019
2 parents 17bf2a3 + 3513c82 commit 57807e9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 11 deletions.
2 changes: 0 additions & 2 deletions Tests/test_000_sanity.py
Expand Up @@ -11,8 +11,6 @@ def test_sanity(self):
# Make sure we have the binary extension
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)))
Expand Down
9 changes: 4 additions & 5 deletions src/PIL/Image.py
Expand Up @@ -24,10 +24,10 @@
# See the README file for information on usage and redistribution.
#

# VERSION is deprecated and will be removed in Pillow 6.0.0.
# PILLOW_VERSION is deprecated and will be removed after that.
# VERSION was removed in Pillow 6.0.0.
# PILLOW_VERSION is deprecated and will be removed in Pillow 7.0.0.
# Use __version__ instead.
from . import VERSION, PILLOW_VERSION, __version__, _plugins
from . import PILLOW_VERSION, __version__, _plugins
from ._util import py3

import logging
Expand Down Expand Up @@ -60,8 +60,7 @@
from collections import Callable


# Silence warnings
assert VERSION
# Silence warning
assert PILLOW_VERSION

logger = logging.getLogger(__name__)
Expand Down
2 changes: 1 addition & 1 deletion src/PIL/ImageCms.py
Expand Up @@ -950,5 +950,5 @@ def versions():

return (
VERSION, core.littlecms_version,
sys.version.split()[0], Image.VERSION
sys.version.split()[0], Image.__version__
)
5 changes: 2 additions & 3 deletions src/PIL/__init__.py
Expand Up @@ -16,10 +16,9 @@

from . import _version

# VERSION is deprecated and will be removed in Pillow 6.0.0.
# PILLOW_VERSION is deprecated and will be removed after that.
# VERSION was removed in Pillow 6.0.0.
# PILLOW_VERSION is deprecated and will be removed in Pillow 7.0.0.
# Use __version__ instead.
VERSION = '1.1.7' # PIL Version
PILLOW_VERSION = __version__ = _version.__version__

del _version
Expand Down

0 comments on commit 57807e9

Please sign in to comment.