From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Wed, 21 Mar 2018 07:07:23 +0000 (-0700) Subject: Fix typos in mmap() error messages (GH-6173) X-Git-Tag: v3.6.6rc1~228 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7abf34344fd8f1a9ef92d73ee8c5d1591688c4ca;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 8acb61ab98..4a875cc825 100644 --- a/Modules/mmapmodule.c +++ b/Modules/mmapmodule.c @@ -1095,7 +1095,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) { @@ -1281,7 +1281,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) {