summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorJustus Schwabedal <jusjusjus@users.noreply.github.com>2017-11-07 20:51:43 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2017-11-07 20:51:43 (GMT)
commit5a8a84b34fbc385bf112819fe3b65503e33a33fa (patch)
tree947e4d2439eeb6e91d7fde953ef7d9a0b01e6950 /Modules
parentc62f0cb3b1f6f9ca4ce463b1c99b0543bdfa38d6 (diff)
downloadcpython-5a8a84b34fbc385bf112819fe3b65503e33a33fa.zip
cpython-5a8a84b34fbc385bf112819fe3b65503e33a33fa.tar.gz
cpython-5a8a84b34fbc385bf112819fe3b65503e33a33fa.tar.bz2
Added :const:`mmap.ACCESS_DEFAULT` constant. (#4093)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/mmapmodule.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/mmapmodule.c b/Modules/mmapmodule.c
index 49214a1..ea7baf4 100644
--- a/Modules/mmapmodule.c
+++ b/Modules/mmapmodule.c
@@ -1466,6 +1466,7 @@ PyInit_mmap(void)
setint(dict, "ALLOCATIONGRANULARITY", (long)my_getallocationgranularity());
+ setint(dict, "ACCESS_DEFAULT", ACCESS_DEFAULT);
setint(dict, "ACCESS_READ", ACCESS_READ);
setint(dict, "ACCESS_WRITE", ACCESS_WRITE);
setint(dict, "ACCESS_COPY", ACCESS_COPY);