From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Wed, 21 Mar 2018 06:55:44 +0000 (-0700) Subject: Fix typos in mmap() error messages (GH-6173) X-Git-Tag: v2.7.15rc1~20 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7ee093614b7e22fda443666d3ef23805126f4ab1;p=python Fix typos in mmap() error messages (GH-6173) (cherry picked from commit 9308dea3e1fd565d50a76a667e4e8ef0568b7053) Co-authored-by: Zackery Spytz --- diff --git a/Modules/mmapmodule.c b/Modules/mmapmodule.c index 5532c4484d..2ae52c7b28 100644 --- a/Modules/mmapmodule.c +++ b/Modules/mmapmodule.c @@ -1114,7 +1114,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) { @@ -1300,7 +1300,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) {