mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-23 21:54:46 +03:00
Do not use use built-in mapper WIN32 only
This commit is contained in:
parent
00b9303edc
commit
39876cf1bf
|
@ -178,14 +178,6 @@ class ImageFile(Image.Image):
|
||||||
and args[0] in Image._MAPMODES
|
and args[0] in Image._MAPMODES
|
||||||
):
|
):
|
||||||
try:
|
try:
|
||||||
if hasattr(Image.core, "map"):
|
|
||||||
# use built-in mapper WIN32 only
|
|
||||||
self.map = Image.core.map(self.filename)
|
|
||||||
self.map.seek(offset)
|
|
||||||
self.im = self.map.readimage(
|
|
||||||
self.mode, self.size, args[1], args[2]
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
# use mmap, if possible
|
# use mmap, if possible
|
||||||
import mmap
|
import mmap
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user