improve check_required_header_comments() description

Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
This commit is contained in:
Yay295 2024-06-24 07:28:47 -05:00 committed by Yay295
parent a2c0a90c44
commit 065aeaea47

View File

@ -231,9 +231,9 @@ class EpsImageFile(ImageFile.ImageFile):
def check_required_header_comments() -> None: def check_required_header_comments() -> None:
""" """
The EPS spec requires that some headers exist. The EPS specification requires that some headers exist.
This should be checked after all headers have been read, This should be checked when the header comments formally end,
or at the end of the file if that comes first. when image data starts, or when the file ends, whichever comes first.
""" """
if "PS-Adobe" not in self.info: if "PS-Adobe" not in self.info:
msg = 'EPS header missing "%!PS-Adobe" comment' msg = 'EPS header missing "%!PS-Adobe" comment'