From 065aeaea472b38896d43363095cccc05220b3c9c Mon Sep 17 00:00:00 2001 From: Yay295 Date: Mon, 24 Jun 2024 07:28:47 -0500 Subject: [PATCH] improve check_required_header_comments() description Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com> --- src/PIL/EpsImagePlugin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/PIL/EpsImagePlugin.py b/src/PIL/EpsImagePlugin.py index c7f9625c9..f31b1c1a2 100644 --- a/src/PIL/EpsImagePlugin.py +++ b/src/PIL/EpsImagePlugin.py @@ -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'