From 8b806e4a2d54d54c8d49329c11a119c034283d6b Mon Sep 17 00:00:00 2001 From: Jerome Leclanche Date: Fri, 6 Jan 2017 06:19:13 +0200 Subject: [PATCH] Remove an unnecessary import --- PIL/JpegImagePlugin.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/PIL/JpegImagePlugin.py b/PIL/JpegImagePlugin.py index 50e049719..38422c136 100644 --- a/PIL/JpegImagePlugin.py +++ b/PIL/JpegImagePlugin.py @@ -36,7 +36,6 @@ import array import struct import io import warnings -from struct import unpack_from from PIL import Image, ImageFile, TiffImagePlugin, _binary from .exceptions import InvalidFileType, PILReadError from PIL.JpegPresets import presets @@ -491,7 +490,7 @@ def _getmp(self): try: rawmpentries = mp[0xB002] for entrynum in range(0, quant): - unpackedentry = unpack_from( + unpackedentry = struct.unpack_from( '{}LLLHH'.format(endianness), rawmpentries, entrynum * 16) labels = ('Attribute', 'Size', 'DataOffset', 'EntryNo1', 'EntryNo2')