Changeset 6b3f2b78f28c…
Parent 2643a6b8935e…
by
Changes to one file · Browse files at 6b3f2b78f28c Showing diff from parent 2643a6b8935e Diff from another changeset...
@@ -107,13 +107,8 @@ :param access: Access mechanism.
:return: MMAP'd area.
"""
- if supports_mmap_offset:
- return (mmap.mmap(f.fileno(), size, access=access,
- offset=int(offset / mmap.ALLOCATIONGRANULARITY)),
- (offset % mmap.ALLOCATIONGRANULARITY))
- else:
- mem = mmap.mmap(f.fileno(), size+offset, access=access)
- return mem, offset
+ mem = mmap.mmap(f.fileno(), size+offset, access=access)
+ return mem, offset
def load_pack_index(filename):
|
Loading...