mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-23 13:44:47 +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
|
||||
|
||||
with open(self.filename, "r") as fp:
|
||||
self.map = mmap.mmap(
|
||||
fp.fileno(), 0, access=mmap.ACCESS_READ
|
||||
)
|
||||
self.map = mmap.mmap(fp.fileno(), 0, access=mmap.ACCESS_READ)
|
||||
self.im = Image.core.map_buffer(
|
||||
self.map, self.size, decoder_name, extents, offset, args
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue
Block a user