diff --git a/Tests/test_file_eps.py b/Tests/test_file_eps.py index b12884128..e91bed0de 100644 --- a/Tests/test_file_eps.py +++ b/Tests/test_file_eps.py @@ -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 diff --git a/src/PIL/EpsImagePlugin.py b/src/PIL/EpsImagePlugin.py index 4ab67dfe7..16cfe2ab2 100644 --- a/src/PIL/EpsImagePlugin.py +++ b/src/PIL/EpsImagePlugin.py @@ -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 - # --------------------------------------------------------------------