]> granicus.if.org Git - python/commitdiff
Fix typos in mmap() error messages (GH-6173)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 21 Mar 2018 06:24:41 +0000 (23:24 -0700)
committerGitHub <noreply@github.com>
Wed, 21 Mar 2018 06:24:41 +0000 (23:24 -0700)
(cherry picked from commit 9308dea3e1fd565d50a76a667e4e8ef0568b7053)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Modules/mmapmodule.c

index 95d42d6dc5e5ac1658647852c3d9dd20d34ce397..9afb79fe2ce05289da74a7711c89ecb8db68a7fc 100644 (file)
@@ -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) {