Fix is_memory_mapped_file (#1503)

pull/1504/head
Gulshan Singh 3 years ago committed by GitHub
parent 98ac815e19
commit b52d72525f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -94,7 +94,7 @@ class Page:
@property
def is_memory_mapped_file(self) -> bool:
return self.objfile and self.objfile[0] != "[" and self.objfile != "<pt>"
return len(self.objfile) != 0 and self.objfile[0] != "[" and self.objfile != "<pt>"
@property
def read(self) -> bool:

Loading…
Cancel
Save