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

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

index 8acb61ab98a9f940adc2c970c58c43fe042d2291..4a875cc825a6ae82b3ec8bc8aed8248eedea5ff9 100644 (file)
@@ -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) {