Skip to content

Commit 065aeae

Browse files
Yay295radarhere
andcommitted
improve check_required_header_comments() description
Co-authored-by: Andrew Murray <[email protected]>
1 parent a2c0a90 commit 065aeae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/PIL/EpsImagePlugin.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,9 +231,9 @@ def _open(self) -> None:
231231

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

0 commit comments

Comments
 (0)