Slightly simplify new mmap() failure detection
This commit is contained in:
parent
059915a878
commit
193eb4d49d
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue