mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-06-02 04:03:33 +03:00
Remove deprecated VERSION
This commit is contained in:
parent
6d0e4a838f
commit
158d99b8b0
|
@ -11,8 +11,6 @@ class TestSanity(PillowTestCase):
|
||||||
# Make sure we have the binary extension
|
# Make sure we have the binary extension
|
||||||
PIL.Image.core.new("L", (100, 100))
|
PIL.Image.core.new("L", (100, 100))
|
||||||
|
|
||||||
self.assertEqual(PIL.Image.VERSION[:3], '1.1')
|
|
||||||
|
|
||||||
# Create an image and do stuff with it.
|
# Create an image and do stuff with it.
|
||||||
im = PIL.Image.new("1", (100, 100))
|
im = PIL.Image.new("1", (100, 100))
|
||||||
self.assertEqual((im.mode, im.size), ('1', (100, 100)))
|
self.assertEqual((im.mode, im.size), ('1', (100, 100)))
|
||||||
|
|
|
@ -24,10 +24,10 @@
|
||||||
# See the README file for information on usage and redistribution.
|
# See the README file for information on usage and redistribution.
|
||||||
#
|
#
|
||||||
|
|
||||||
# VERSION is deprecated and will be removed in Pillow 6.0.0.
|
# VERSION was removed in Pillow 6.0.0.
|
||||||
# PILLOW_VERSION is deprecated and will be removed after that.
|
# PILLOW_VERSION is deprecated and will be removed in Pillow 7.0.0.
|
||||||
# Use __version__ instead.
|
# Use __version__ instead.
|
||||||
from . import VERSION, PILLOW_VERSION, __version__, _plugins
|
from . import PILLOW_VERSION, __version__, _plugins
|
||||||
from ._util import py3
|
from ._util import py3
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
@ -60,8 +60,7 @@ except ImportError:
|
||||||
from collections import Callable
|
from collections import Callable
|
||||||
|
|
||||||
|
|
||||||
# Silence warnings
|
# Silence warning
|
||||||
assert VERSION
|
|
||||||
assert PILLOW_VERSION
|
assert PILLOW_VERSION
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
|
@ -16,10 +16,9 @@ PIL.VERSION is the old PIL version and will be removed in the future.
|
||||||
|
|
||||||
from . import _version
|
from . import _version
|
||||||
|
|
||||||
# VERSION is deprecated and will be removed in Pillow 6.0.0.
|
# VERSION was removed in Pillow 6.0.0.
|
||||||
# PILLOW_VERSION is deprecated and will be removed after that.
|
# PILLOW_VERSION is deprecated and will be removed in Pillow 7.0.0.
|
||||||
# Use __version__ instead.
|
# Use __version__ instead.
|
||||||
VERSION = '1.1.7' # PIL Version
|
|
||||||
PILLOW_VERSION = __version__ = _version.__version__
|
PILLOW_VERSION = __version__ = _version.__version__
|
||||||
|
|
||||||
del _version
|
del _version
|
||||||
|
|
Loading…
Reference in New Issue
Block a user