Wasting time fixing lint failures

This commit is contained in:
Christoph Gohlke 2019-12-27 01:45:24 -08:00 committed by GitHub
parent 39876cf1bf
commit 338a5b489a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
)