Skip to content

Commit

Permalink
improve check_required_header_comments() description
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
  • Loading branch information
Yay295 and radarhere committed Jun 24, 2024
1 parent a2c0a90 commit 065aeae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/PIL/EpsImagePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,9 @@ def _open(self) -> None:

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

0 comments on commit 065aeae

Please sign in to comment.