mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-10 16:22:22 +03:00
coverage tool done
This commit is contained in:
parent
0496f0b1bc
commit
fdcb04ca81
|
@ -40,11 +40,6 @@ from typing import IO
|
||||||
|
|
||||||
from . import Image, ImageFile
|
from . import Image, ImageFile
|
||||||
|
|
||||||
branches = {
|
|
||||||
"1": False,
|
|
||||||
"2": False,
|
|
||||||
}
|
|
||||||
|
|
||||||
class Format(IntEnum):
|
class Format(IntEnum):
|
||||||
JPEG = 0
|
JPEG = 0
|
||||||
|
|
||||||
|
@ -281,9 +276,16 @@ class BlpImageFile(ImageFile.ImageFile):
|
||||||
|
|
||||||
|
|
||||||
class _BLPBaseDecoder(ImageFile.PyDecoder):
|
class _BLPBaseDecoder(ImageFile.PyDecoder):
|
||||||
|
|
||||||
|
|
||||||
_pulls_fd = True
|
_pulls_fd = True
|
||||||
|
|
||||||
def decode(self, buffer: bytes) -> tuple[int, int]:
|
def decode(self, buffer: bytes) -> tuple[int, int]:
|
||||||
|
branches = {
|
||||||
|
"1": False,
|
||||||
|
"2": False,
|
||||||
|
}
|
||||||
|
|
||||||
try:
|
try:
|
||||||
branches["1"] = True;
|
branches["1"] = True;
|
||||||
self._read_blp_header()
|
self._read_blp_header()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user