mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-13 10:46:16 +03:00
Removed import
This commit is contained in:
parent
b1e88ac17f
commit
17911d6ec4
|
@ -172,8 +172,6 @@ def getiptcinfo(im):
|
|||
:returns: A dictionary containing IPTC information, or None if
|
||||
no IPTC information block was found.
|
||||
"""
|
||||
import io
|
||||
|
||||
from . import JpegImagePlugin, TiffImagePlugin
|
||||
|
||||
data = None
|
||||
|
@ -208,7 +206,7 @@ def getiptcinfo(im):
|
|||
|
||||
# parse the IPTC information chunk
|
||||
im.info = {}
|
||||
im.fp = io.BytesIO(data)
|
||||
im.fp = BytesIO(data)
|
||||
|
||||
try:
|
||||
im._open()
|
||||
|
|
Loading…
Reference in New Issue
Block a user