From c9e0c9d019735159312e97e73beac9a8e1c9e8fa Mon Sep 17 00:00:00 2001 From: geospatial-jeff Date: Sun, 28 May 2023 09:41:08 -0600 Subject: [PATCH] open mmap with ACCESS_READ --- python/pmtiles/reader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/pmtiles/reader.py b/python/pmtiles/reader.py index 86144a2..a8f7fe2 100644 --- a/python/pmtiles/reader.py +++ b/python/pmtiles/reader.py @@ -12,7 +12,7 @@ import gzip def MmapSource(f): - mapping = mmap.mmap(f.fileno(), 0) + mapping = mmap.mmap(f.fileno(), 0, access=mmap.ACCESS_READ) def get_bytes(offset, length): return mapping[offset : offset + length]