mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 17:36:18 +03:00
improve check_required_header_comments() description
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
This commit is contained in:
parent
a2c0a90c44
commit
065aeaea47
|
@ -231,9 +231,9 @@ class EpsImageFile(ImageFile.ImageFile):
|
|||
|
||||
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'
|
||||
|
|
Loading…
Reference in New Issue
Block a user