mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-24 17:06:16 +03:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
12d8b439d5
commit
794a1d7ff2
|
@ -413,5 +413,7 @@ def test_timeout(test_file):
|
|||
def test_boundary_box_in_trailer(trailer_image_file, header_image_file):
|
||||
# Check whether boundary boxes which are specified in the trailer are parsed
|
||||
# just like boundary boxes specified in the header
|
||||
with Image.open(trailer_image_file) as trailer_image, Image.open(header_image_file) as header_image:
|
||||
with Image.open(trailer_image_file) as trailer_image, Image.open(
|
||||
header_image_file
|
||||
) as header_image:
|
||||
assert trailer_image.size == header_image.size
|
||||
|
|
|
@ -414,9 +414,7 @@ class EpsImageFile(ImageFile.ImageFile):
|
|||
# put floating point values there anyway.
|
||||
box = [int(float(i)) for i in v.split()]
|
||||
self._size = box[2] - box[0], box[3] - box[1]
|
||||
self.tile = [
|
||||
("eps", (0, 0) + self.size, offset, (length, box))
|
||||
]
|
||||
self.tile = [("eps", (0, 0) + self.size, offset, (length, box))]
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
|
@ -435,7 +433,6 @@ class EpsImageFile(ImageFile.ImageFile):
|
|||
pass
|
||||
|
||||
|
||||
|
||||
# --------------------------------------------------------------------
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user