mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-10 19:56:47 +03:00
unused imports
This commit is contained in:
parent
e4f9b697c6
commit
63f5f68837
|
@ -217,7 +217,7 @@ def getiptcinfo(im):
|
|||
while app[offset:offset+4] == b"8BIM":
|
||||
offset += 4
|
||||
# resource code
|
||||
code = JpegImagePlugin.i16(app, offset)
|
||||
code = i16(app, offset)
|
||||
offset += 2
|
||||
# resource name (usually empty)
|
||||
name_len = i8(app[offset])
|
||||
|
@ -226,7 +226,7 @@ def getiptcinfo(im):
|
|||
if offset & 1:
|
||||
offset += 1
|
||||
# resource data block
|
||||
size = JpegImagePlugin.i32(app, offset)
|
||||
size = i32(app, offset)
|
||||
offset += 4
|
||||
if code == 0x0404:
|
||||
# 0x0404 contains IPTC/NAA data
|
||||
|
|
|
@ -27,7 +27,6 @@ __version__ = "0.1"
|
|||
# helpers
|
||||
|
||||
i16 = _binary.i16le
|
||||
i32 = _binary.i32le
|
||||
|
||||
|
||||
##
|
||||
|
|
|
@ -24,7 +24,6 @@ __version__ = "0.2"
|
|||
|
||||
i8 = _binary.i8
|
||||
i16 = _binary.i16be
|
||||
i32 = _binary.i32be
|
||||
|
||||
|
||||
def _accept(prefix):
|
||||
|
|
|
@ -21,7 +21,6 @@ from PIL import Image, ImageFile, ImagePalette, _binary
|
|||
|
||||
__version__ = "0.3"
|
||||
|
||||
i16 = _binary.i16be
|
||||
i32 = _binary.i32be
|
||||
|
||||
|
||||
|
|
|
@ -28,7 +28,6 @@ __version__ = "0.3"
|
|||
|
||||
i8 = _binary.i8
|
||||
i16 = _binary.i16le
|
||||
i32 = _binary.i32le
|
||||
|
||||
|
||||
MODES = {
|
||||
|
|
Loading…
Reference in New Issue
Block a user