Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7ee0936

Browse files
Fix typos in mmap() error messages (pythonGH-6173)
(cherry picked from commit 9308dea) Co-authored-by: Zackery Spytz <[email protected]>
1 parent 4e907d8 commit 7ee0936

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/mmapmodule.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1114,7 +1114,7 @@ new_mmap_object(PyTypeObject *type, PyObject *args, PyObject *kwdict)
11141114
return NULL;
11151115
if (map_size < 0) {
11161116
PyErr_SetString(PyExc_OverflowError,
1117-
"memory mapped length must be postiive");
1117+
"memory mapped length must be positive");
11181118
return NULL;
11191119
}
11201120
if (offset < 0) {
@@ -1300,7 +1300,7 @@ new_mmap_object(PyTypeObject *type, PyObject *args, PyObject *kwdict)
13001300

13011301
if (map_size < 0) {
13021302
PyErr_SetString(PyExc_OverflowError,
1303-
"memory mapped length must be postiive");
1303+
"memory mapped length must be positive");
13041304
return NULL;
13051305
}
13061306
if (offset < 0) {

0 commit comments

Comments
 (0)