mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-23 21:54:46 +03:00
Wasting time fixing lint failures
This commit is contained in:
parent
39876cf1bf
commit
338a5b489a
|
@ -182,9 +182,7 @@ class ImageFile(Image.Image):
|
||||||
import mmap
|
import mmap
|
||||||
|
|
||||||
with open(self.filename, "r") as fp:
|
with open(self.filename, "r") as fp:
|
||||||
self.map = mmap.mmap(
|
self.map = mmap.mmap(fp.fileno(), 0, access=mmap.ACCESS_READ)
|
||||||
fp.fileno(), 0, access=mmap.ACCESS_READ
|
|
||||||
)
|
|
||||||
self.im = Image.core.map_buffer(
|
self.im = Image.core.map_buffer(
|
||||||
self.map, self.size, decoder_name, extents, offset, args
|
self.map, self.size, decoder_name, extents, offset, args
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user