[Python-checkins] Fix typos in mmap() error messages (GH-6173)
Xiang Zhang
webhook-mailer at python.org
Wed Mar 21 02:02:46 EDT 2018
https://github.com/python/cpython/commit/9308dea3e1fd565d50a76a667e4e8ef0568b7053
commit: 9308dea3e1fd565d50a76a667e4e8ef0568b7053
branch: master
author: Zackery Spytz <zspytz at gmail.com>
committer: Xiang Zhang <angwerzx at 126.com>
date: 2018-03-21T14:02:37+08:00
summary:
Fix typos in mmap() error messages (GH-6173)
files:
M Modules/mmapmodule.c
diff --git a/Modules/mmapmodule.c b/Modules/mmapmodule.c
index 95d42d6dc5e5..9afb79fe2ce0 100644
--- a/Modules/mmapmodule.c
+++ b/Modules/mmapmodule.c
@@ -1067,7 +1067,7 @@ new_mmap_object(PyTypeObject *type, PyObject *args, PyObject *kwdict)
return NULL;
if (map_size < 0) {
PyErr_SetString(PyExc_OverflowError,
- "memory mapped length must be postiive");
+ "memory mapped length must be positive");
return NULL;
}
if (offset < 0) {
@@ -1253,7 +1253,7 @@ new_mmap_object(PyTypeObject *type, PyObject *args, PyObject *kwdict)
if (map_size < 0) {
PyErr_SetString(PyExc_OverflowError,
- "memory mapped length must be postiive");
+ "memory mapped length must be positive");
return NULL;
}
if (offset < 0) {
More information about the Python-checkins
mailing list