From fdcb04ca813c31534b414de1062f29dc89620947 Mon Sep 17 00:00:00 2001 From: sofijazolotarev Date: Thu, 27 Jun 2024 03:06:59 +0200 Subject: [PATCH] coverage tool done --- src/PIL/BlpImagePlugin.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/PIL/BlpImagePlugin.py b/src/PIL/BlpImagePlugin.py index e40ea2179..c229cc9ce 100644 --- a/src/PIL/BlpImagePlugin.py +++ b/src/PIL/BlpImagePlugin.py @@ -40,11 +40,6 @@ from typing import IO from . import Image, ImageFile -branches = { - "1": False, - "2": False, -} - class Format(IntEnum): JPEG = 0 @@ -281,9 +276,16 @@ class BlpImageFile(ImageFile.ImageFile): class _BLPBaseDecoder(ImageFile.PyDecoder): + + _pulls_fd = True def decode(self, buffer: bytes) -> tuple[int, int]: + branches = { + "1": False, + "2": False, + } + try: branches["1"] = True; self._read_blp_header()