]> 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:55:44 +0000 (23:55 -0700)
committerGitHub <noreply@github.com>
Wed, 21 Mar 2018 06:55:44 +0000 (23:55 -0700)
(cherry picked from commit 9308dea3e1fd565d50a76a667e4e8ef0568b7053)

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

index 5532c4484db2f6eb364fd8dedb7add6f4a988198..2ae52c7b28df79bbad4b0f265efc3d6473df7340 100644 (file)
@@ -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) {