mirror of
https://github.com/python/cpython.git
synced 2025-10-02 05:12:23 +00:00
Fix typos in mmap() error messages (GH-6173)
(cherry picked from commit 9308dea3e1
)
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
This commit is contained in:
parent
3326c9267f
commit
56f530ef8a
1 changed files with 2 additions and 2 deletions
|
@ -1067,7 +1067,7 @@ new_mmap_object(PyTypeObject *type, PyObject *args, PyObject *kwdict)
|
||||||
return NULL;
|
return NULL;
|
||||||
if (map_size < 0) {
|
if (map_size < 0) {
|
||||||
PyErr_SetString(PyExc_OverflowError,
|
PyErr_SetString(PyExc_OverflowError,
|
||||||
"memory mapped length must be postiive");
|
"memory mapped length must be positive");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
if (offset < 0) {
|
if (offset < 0) {
|
||||||
|
@ -1253,7 +1253,7 @@ new_mmap_object(PyTypeObject *type, PyObject *args, PyObject *kwdict)
|
||||||
|
|
||||||
if (map_size < 0) {
|
if (map_size < 0) {
|
||||||
PyErr_SetString(PyExc_OverflowError,
|
PyErr_SetString(PyExc_OverflowError,
|
||||||
"memory mapped length must be postiive");
|
"memory mapped length must be positive");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
if (offset < 0) {
|
if (offset < 0) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue