Slightly simplify new mmap() failure detection

This commit is contained in:
Brandon Rhodes 2020-03-26 12:35:43 -04:00
parent 059915a878
commit 193eb4d49d
1 changed files with 1 additions and 2 deletions

View File

@ -103,9 +103,8 @@ class DAF(object):
try:
fileno = self.file.fileno()
except (AttributeError, io.UnsupportedOperation):
fileno = None
m = None
if fileno is not None:
else:
skip = i % mmap.ALLOCATIONGRANULARITY
r = mmap.ACCESS_READ
try: