[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2023-09-07 18:36:29 +00:00
parent 12d8b439d5
commit 794a1d7ff2
2 changed files with 4 additions and 5 deletions

View File

@ -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

View File

@ -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
# --------------------------------------------------------------------