MCPcopy Index your code
hub / github.com/python-pillow/Pillow / verify

Method verify

src/PIL/ImageFile.py:282–289  ·  view source on GitHub ↗

Check file integrity

(self)

Source from the content-addressed store, hash-verified

280 super().__setstate__(state)
281
282 def verify(self) -> None:
283 """Check file integrity"""
284
285 # raise exception if something's wrong. must be called
286 # directly after open, and closes file when finished.
287 if self._exclusive_fp and self.fp:
288 self.fp.close()
289 self.fp = None
290
291 def load(self) -> Image.core.PixelAccess | None:
292 """Load image data based on tile list"""

Callers

nothing calls this directly

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected