mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-27 09:44:31 +03:00
Deprecate PIL.*ImagePlugin.__version__ attributes
Use PIL.__version__ instead.
This commit is contained in:
parent
3a41d6dc69
commit
a11fed32b3
|
@ -29,10 +29,49 @@ and have now been removed: ``gaussian_blur``, ``gblur``, ``unsharp_mask``, ``usm
|
||||||
API Changes
|
API Changes
|
||||||
===========
|
===========
|
||||||
|
|
||||||
TODO
|
Deprecations
|
||||||
^^^^
|
^^^^^^^^^^^^
|
||||||
|
|
||||||
TODO
|
These version constants have been deprecated and will be removed in a future
|
||||||
|
version.
|
||||||
|
|
||||||
|
* ``BmpImagePlugin.__version__``
|
||||||
|
* ``CurImagePlugin.__version__``
|
||||||
|
* ``DcxImagePlugin.__version__``
|
||||||
|
* ``EpsImagePlugin.__version__``
|
||||||
|
* ``FliImagePlugin.__version__``
|
||||||
|
* ``FpxImagePlugin.__version__``
|
||||||
|
* ``GdImageFile.__version__``
|
||||||
|
* ``GifImagePlugin.__version__``
|
||||||
|
* ``IcoImagePlugin.__version__``
|
||||||
|
* ``ImImagePlugin.__version__``
|
||||||
|
* ``ImtImagePlugin.__version__``
|
||||||
|
* ``IptcImagePlugin.__version__``
|
||||||
|
* ``Jpeg2KImagePlugin.__version__``
|
||||||
|
* ``JpegImagePlugin.__version__``
|
||||||
|
* ``McIdasImagePlugin.__version__``
|
||||||
|
* ``MicImagePlugin.__version__``
|
||||||
|
* ``MpegImagePlugin.__version__``
|
||||||
|
* ``MpoImagePlugin.__version__``
|
||||||
|
* ``MspImagePlugin.__version__``
|
||||||
|
* ``PalmImagePlugin.__version__``
|
||||||
|
* ``PcdImagePlugin.__version__``
|
||||||
|
* ``PcxImagePlugin.__version__``
|
||||||
|
* ``PdfImagePlugin.__version__``
|
||||||
|
* ``PixarImagePlugin.__version__``
|
||||||
|
* ``PngImagePlugin.__version__``
|
||||||
|
* ``PpmImagePlugin.__version__``
|
||||||
|
* ``PsdImagePlugin.__version__``
|
||||||
|
* ``SgiImagePlugin.__version__``
|
||||||
|
* ``SunImagePlugin.__version__``
|
||||||
|
* ``TgaImagePlugin.__version__``
|
||||||
|
* ``TiffImagePlugin.__version__``
|
||||||
|
* ``WmfImagePlugin.__version__``
|
||||||
|
* ``XbmImagePlugin.__version__``
|
||||||
|
* ``XpmImagePlugin.__version__``
|
||||||
|
* ``XVThumbImagePlugin.__version__``
|
||||||
|
|
||||||
|
Use ``PIL.__version__`` instead.
|
||||||
|
|
||||||
API Additions
|
API Additions
|
||||||
=============
|
=============
|
||||||
|
|
|
@ -29,6 +29,8 @@ from ._binary import i8, i16le as i16, i32le as i32, \
|
||||||
o8, o16le as o16, o32le as o32
|
o8, o16le as o16, o32le as o32
|
||||||
import math
|
import math
|
||||||
|
|
||||||
|
# __version__ is deprecated and will be removed in a future version. Use
|
||||||
|
# PIL.__version__ instead.
|
||||||
__version__ = "0.7"
|
__version__ = "0.7"
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
|
@ -21,6 +21,8 @@ from __future__ import print_function
|
||||||
from . import Image, BmpImagePlugin
|
from . import Image, BmpImagePlugin
|
||||||
from ._binary import i8, i16le as i16, i32le as i32
|
from ._binary import i8, i16le as i16, i32le as i32
|
||||||
|
|
||||||
|
# __version__ is deprecated and will be removed in a future version. Use
|
||||||
|
# PIL.__version__ instead.
|
||||||
__version__ = "0.1"
|
__version__ = "0.1"
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
|
@ -25,6 +25,8 @@ from . import Image
|
||||||
from ._binary import i32le as i32
|
from ._binary import i32le as i32
|
||||||
from .PcxImagePlugin import PcxImageFile
|
from .PcxImagePlugin import PcxImageFile
|
||||||
|
|
||||||
|
# __version__ is deprecated and will be removed in a future version. Use
|
||||||
|
# PIL.__version__ instead.
|
||||||
__version__ = "0.2"
|
__version__ = "0.2"
|
||||||
|
|
||||||
MAGIC = 0x3ADE68B1 # QUIZ: what's this value, then?
|
MAGIC = 0x3ADE68B1 # QUIZ: what's this value, then?
|
||||||
|
|
|
@ -27,6 +27,8 @@ import sys
|
||||||
from . import Image, ImageFile
|
from . import Image, ImageFile
|
||||||
from ._binary import i32le as i32
|
from ._binary import i32le as i32
|
||||||
|
|
||||||
|
# __version__ is deprecated and will be removed in a future version. Use
|
||||||
|
# PIL.__version__ instead.
|
||||||
__version__ = "0.5"
|
__version__ = "0.5"
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
|
@ -19,6 +19,8 @@
|
||||||
from . import Image, ImageFile, ImagePalette
|
from . import Image, ImageFile, ImagePalette
|
||||||
from ._binary import i8, i16le as i16, i32le as i32, o8
|
from ._binary import i8, i16le as i16, i32le as i32, o8
|
||||||
|
|
||||||
|
# __version__ is deprecated and will be removed in a future version. Use
|
||||||
|
# PIL.__version__ instead.
|
||||||
__version__ = "0.2"
|
__version__ = "0.2"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -22,6 +22,8 @@ from ._binary import i32le as i32, i8
|
||||||
|
|
||||||
import olefile
|
import olefile
|
||||||
|
|
||||||
|
# __version__ is deprecated and will be removed in a future version. Use
|
||||||
|
# PIL.__version__ instead.
|
||||||
__version__ = "0.1"
|
__version__ = "0.1"
|
||||||
|
|
||||||
# we map from colour field tuples to (mode, rawmode) descriptors
|
# we map from colour field tuples to (mode, rawmode) descriptors
|
||||||
|
|
|
@ -26,6 +26,8 @@
|
||||||
from . import ImageFile, ImagePalette
|
from . import ImageFile, ImagePalette
|
||||||
from ._binary import i8, i16be as i16, i32be as i32
|
from ._binary import i8, i16be as i16, i32be as i32
|
||||||
|
|
||||||
|
# __version__ is deprecated and will be removed in a future version. Use
|
||||||
|
# PIL.__version__ instead.
|
||||||
__version__ = "0.1"
|
__version__ = "0.1"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -29,6 +29,8 @@ from ._binary import i8, i16le as i16, o8, o16le as o16
|
||||||
|
|
||||||
import itertools
|
import itertools
|
||||||
|
|
||||||
|
# __version__ is deprecated and will be removed in a future version. Use
|
||||||
|
# PIL.__version__ instead.
|
||||||
__version__ = "0.9"
|
__version__ = "0.9"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -29,6 +29,8 @@ from . import Image, ImageFile, BmpImagePlugin, PngImagePlugin
|
||||||
from ._binary import i8, i16le as i16, i32le as i32
|
from ._binary import i8, i16le as i16, i32le as i32
|
||||||
from math import log, ceil
|
from math import log, ceil
|
||||||
|
|
||||||
|
# __version__ is deprecated and will be removed in a future version. Use
|
||||||
|
# PIL.__version__ instead.
|
||||||
__version__ = "0.1"
|
__version__ = "0.1"
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
|
@ -30,6 +30,8 @@ import re
|
||||||
from . import Image, ImageFile, ImagePalette
|
from . import Image, ImageFile, ImagePalette
|
||||||
from ._binary import i8
|
from ._binary import i8
|
||||||
|
|
||||||
|
# __version__ is deprecated and will be removed in a future version. Use
|
||||||
|
# PIL.__version__ instead.
|
||||||
__version__ = "0.7"
|
__version__ = "0.7"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -19,6 +19,8 @@ import re
|
||||||
|
|
||||||
from . import Image, ImageFile
|
from . import Image, ImageFile
|
||||||
|
|
||||||
|
# __version__ is deprecated and will be removed in a future version. Use
|
||||||
|
# PIL.__version__ instead.
|
||||||
__version__ = "0.2"
|
__version__ = "0.2"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -22,6 +22,8 @@ from ._binary import i8, i16be as i16, i32be as i32, o8
|
||||||
import os
|
import os
|
||||||
import tempfile
|
import tempfile
|
||||||
|
|
||||||
|
# __version__ is deprecated and will be removed in a future version. Use
|
||||||
|
# PIL.__version__ instead.
|
||||||
__version__ = "0.3"
|
__version__ = "0.3"
|
||||||
|
|
||||||
COMPRESSION = {
|
COMPRESSION = {
|
||||||
|
|
|
@ -17,6 +17,8 @@ import struct
|
||||||
import os
|
import os
|
||||||
import io
|
import io
|
||||||
|
|
||||||
|
# __version__ is deprecated and will be removed in a future version. Use
|
||||||
|
# PIL.__version__ instead.
|
||||||
__version__ = "0.1"
|
__version__ = "0.1"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -43,6 +43,8 @@ from ._binary import i8, o8, i16be as i16
|
||||||
from .JpegPresets import presets
|
from .JpegPresets import presets
|
||||||
from ._util import isStringType
|
from ._util import isStringType
|
||||||
|
|
||||||
|
# __version__ is deprecated and will be removed in a future version. Use
|
||||||
|
# PIL.__version__ instead.
|
||||||
__version__ = "0.6"
|
__version__ = "0.6"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -19,6 +19,8 @@
|
||||||
import struct
|
import struct
|
||||||
from . import Image, ImageFile
|
from . import Image, ImageFile
|
||||||
|
|
||||||
|
# __version__ is deprecated and will be removed in a future version. Use
|
||||||
|
# PIL.__version__ instead.
|
||||||
__version__ = "0.2"
|
__version__ = "0.2"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -21,6 +21,8 @@ from . import Image, TiffImagePlugin
|
||||||
|
|
||||||
import olefile
|
import olefile
|
||||||
|
|
||||||
|
# __version__ is deprecated and will be removed in a future version. Use
|
||||||
|
# PIL.__version__ instead.
|
||||||
__version__ = "0.1"
|
__version__ = "0.1"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -17,6 +17,8 @@
|
||||||
from . import Image, ImageFile
|
from . import Image, ImageFile
|
||||||
from ._binary import i8
|
from ._binary import i8
|
||||||
|
|
||||||
|
# __version__ is deprecated and will be removed in a future version. Use
|
||||||
|
# PIL.__version__ instead.
|
||||||
__version__ = "0.1"
|
__version__ = "0.1"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -20,6 +20,8 @@
|
||||||
|
|
||||||
from . import Image, JpegImagePlugin
|
from . import Image, JpegImagePlugin
|
||||||
|
|
||||||
|
# __version__ is deprecated and will be removed in a future version. Use
|
||||||
|
# PIL.__version__ instead.
|
||||||
__version__ = "0.1"
|
__version__ = "0.1"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -28,6 +28,8 @@ from ._binary import i16le as i16, o16le as o16, i8
|
||||||
import struct
|
import struct
|
||||||
import io
|
import io
|
||||||
|
|
||||||
|
# __version__ is deprecated and will be removed in a future version. Use
|
||||||
|
# PIL.__version__ instead.
|
||||||
__version__ = "0.1"
|
__version__ = "0.1"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,8 @@
|
||||||
from . import Image, ImageFile
|
from . import Image, ImageFile
|
||||||
from ._binary import o8, o16be as o16b
|
from ._binary import o8, o16be as o16b
|
||||||
|
|
||||||
|
# __version__ is deprecated and will be removed in a future version. Use
|
||||||
|
# PIL.__version__ instead.
|
||||||
__version__ = "1.0"
|
__version__ = "1.0"
|
||||||
|
|
||||||
_Palm8BitColormapValues = ( # noqa: E131
|
_Palm8BitColormapValues = ( # noqa: E131
|
||||||
|
|
|
@ -18,6 +18,8 @@
|
||||||
from . import Image, ImageFile
|
from . import Image, ImageFile
|
||||||
from ._binary import i8
|
from ._binary import i8
|
||||||
|
|
||||||
|
# __version__ is deprecated and will be removed in a future version. Use
|
||||||
|
# PIL.__version__ instead.
|
||||||
__version__ = "0.1"
|
__version__ = "0.1"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -31,6 +31,8 @@ from ._binary import i8, i16le as i16, o8, o16le as o16
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
# __version__ is deprecated and will be removed in a future version. Use
|
||||||
|
# PIL.__version__ instead.
|
||||||
__version__ = "0.6"
|
__version__ = "0.6"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -25,6 +25,8 @@ import io
|
||||||
import os
|
import os
|
||||||
import time
|
import time
|
||||||
|
|
||||||
|
# __version__ is deprecated and will be removed in a future version. Use
|
||||||
|
# PIL.__version__ instead.
|
||||||
__version__ = "0.5"
|
__version__ = "0.5"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -22,6 +22,8 @@
|
||||||
from . import Image, ImageFile
|
from . import Image, ImageFile
|
||||||
from ._binary import i16le as i16
|
from ._binary import i16le as i16
|
||||||
|
|
||||||
|
# __version__ is deprecated and will be removed in a future version. Use
|
||||||
|
# PIL.__version__ instead.
|
||||||
__version__ = "0.1"
|
__version__ = "0.1"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -40,6 +40,8 @@ from . import Image, ImageFile, ImagePalette
|
||||||
from ._binary import i8, i16be as i16, i32be as i32, o16be as o16, o32be as o32
|
from ._binary import i8, i16be as i16, i32be as i32, o16be as o16, o32be as o32
|
||||||
from ._util import py3
|
from ._util import py3
|
||||||
|
|
||||||
|
# __version__ is deprecated and will be removed in a future version. Use
|
||||||
|
# PIL.__version__ instead.
|
||||||
__version__ = "0.9"
|
__version__ = "0.9"
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
|
@ -17,6 +17,8 @@
|
||||||
|
|
||||||
from . import Image, ImageFile
|
from . import Image, ImageFile
|
||||||
|
|
||||||
|
# __version__ is deprecated and will be removed in a future version. Use
|
||||||
|
# PIL.__version__ instead.
|
||||||
__version__ = "0.2"
|
__version__ = "0.2"
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
|
@ -16,6 +16,8 @@
|
||||||
# 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 a future version. Use
|
||||||
|
# PIL.__version__ instead.
|
||||||
__version__ = "0.4"
|
__version__ = "0.4"
|
||||||
|
|
||||||
from . import Image, ImageFile, ImagePalette
|
from . import Image, ImageFile, ImagePalette
|
||||||
|
|
|
@ -29,6 +29,8 @@ import struct
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
|
||||||
|
# __version__ is deprecated and will be removed in a future version. Use
|
||||||
|
# PIL.__version__ instead.
|
||||||
__version__ = "0.3"
|
__version__ = "0.3"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -20,6 +20,8 @@
|
||||||
from . import Image, ImageFile, ImagePalette
|
from . import Image, ImageFile, ImagePalette
|
||||||
from ._binary import i32be as i32
|
from ._binary import i32be as i32
|
||||||
|
|
||||||
|
# __version__ is deprecated and will be removed in a future version. Use
|
||||||
|
# PIL.__version__ instead.
|
||||||
__version__ = "0.3"
|
__version__ = "0.3"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -22,6 +22,8 @@ from ._binary import i8, i16le as i16, o8, o16le as o16
|
||||||
|
|
||||||
import warnings
|
import warnings
|
||||||
|
|
||||||
|
# __version__ is deprecated and will be removed in a future version. Use
|
||||||
|
# PIL.__version__ instead.
|
||||||
__version__ = "0.3"
|
__version__ = "0.3"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -66,6 +66,8 @@ except ImportError:
|
||||||
from collections import MutableMapping
|
from collections import MutableMapping
|
||||||
|
|
||||||
|
|
||||||
|
# __version__ is deprecated and will be removed in a future version. Use
|
||||||
|
# PIL.__version__ instead.
|
||||||
__version__ = "1.3.5"
|
__version__ = "1.3.5"
|
||||||
DEBUG = False # Needs to be merged with the new logging approach.
|
DEBUG = False # Needs to be merged with the new logging approach.
|
||||||
|
|
||||||
|
|
|
@ -27,6 +27,8 @@ from ._binary import i16le as word, si16le as short, \
|
||||||
from ._util import py3
|
from ._util import py3
|
||||||
|
|
||||||
|
|
||||||
|
# __version__ is deprecated and will be removed in a future version. Use
|
||||||
|
# PIL.__version__ instead.
|
||||||
__version__ = "0.2"
|
__version__ = "0.2"
|
||||||
|
|
||||||
_handler = None
|
_handler = None
|
||||||
|
|
|
@ -20,6 +20,8 @@
|
||||||
from . import Image, ImageFile, ImagePalette
|
from . import Image, ImageFile, ImagePalette
|
||||||
from ._binary import i8, o8
|
from ._binary import i8, o8
|
||||||
|
|
||||||
|
# __version__ is deprecated and will be removed in a future version. Use
|
||||||
|
# PIL.__version__ instead.
|
||||||
__version__ = "0.1"
|
__version__ = "0.1"
|
||||||
|
|
||||||
_MAGIC = b"P7 332"
|
_MAGIC = b"P7 332"
|
||||||
|
|
|
@ -22,6 +22,8 @@
|
||||||
import re
|
import re
|
||||||
from . import Image, ImageFile
|
from . import Image, ImageFile
|
||||||
|
|
||||||
|
# __version__ is deprecated and will be removed in a future version. Use
|
||||||
|
# PIL.__version__ instead.
|
||||||
__version__ = "0.6"
|
__version__ = "0.6"
|
||||||
|
|
||||||
# XBM header
|
# XBM header
|
||||||
|
|
|
@ -19,6 +19,8 @@ import re
|
||||||
from . import Image, ImageFile, ImagePalette
|
from . import Image, ImageFile, ImagePalette
|
||||||
from ._binary import i8, o8
|
from ._binary import i8, o8
|
||||||
|
|
||||||
|
# __version__ is deprecated and will be removed in a future version. Use
|
||||||
|
# PIL.__version__ instead.
|
||||||
__version__ = "0.2"
|
__version__ = "0.2"
|
||||||
|
|
||||||
# XPM header
|
# XPM header
|
||||||
|
|
Loading…
Reference in New Issue
Block a user