mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-13 18:56:17 +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
|
:returns: A dictionary containing IPTC information, or None if
|
||||||
no IPTC information block was found.
|
no IPTC information block was found.
|
||||||
"""
|
"""
|
||||||
import io
|
|
||||||
|
|
||||||
from . import JpegImagePlugin, TiffImagePlugin
|
from . import JpegImagePlugin, TiffImagePlugin
|
||||||
|
|
||||||
data = None
|
data = None
|
||||||
|
@ -208,7 +206,7 @@ def getiptcinfo(im):
|
||||||
|
|
||||||
# parse the IPTC information chunk
|
# parse the IPTC information chunk
|
||||||
im.info = {}
|
im.info = {}
|
||||||
im.fp = io.BytesIO(data)
|
im.fp = BytesIO(data)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
im._open()
|
im._open()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user