Merge pull request #6058 from radarhere/relative

Replaced absolute PIL import with relative import
This commit is contained in:
Hugo van Kemenade 2022-02-17 00:15:53 +02:00 committed by GitHub
commit bd4e20f8c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -347,7 +347,7 @@ class BLP1Decoder(_BLPBaseDecoder):
)
def _decode_jpeg_stream(self):
from PIL.JpegImagePlugin import JpegImageFile
from .JpegImagePlugin import JpegImageFile
(jpeg_header_size,) = struct.unpack("<I", self._safe_read(4))
jpeg_header = self._safe_read(jpeg_header_size)