mirror of
https://github.com/python/cpython.git
synced 2025-11-14 07:49:28 +00:00
Issue #17193: Use binary prefixes (KiB, MiB, GiB) for memory units.
This commit is contained in:
commit
0cad7eca45
9 changed files with 21 additions and 21 deletions
|
|
@ -1788,7 +1788,7 @@ save_bytes(PicklerObject *self, PyObject *obj)
|
|||
}
|
||||
else {
|
||||
PyErr_SetString(PyExc_OverflowError,
|
||||
"cannot serialize a bytes object larger than 4GB");
|
||||
"cannot serialize a bytes object larger than 4 GiB");
|
||||
return -1; /* string too large */
|
||||
}
|
||||
|
||||
|
|
@ -1888,7 +1888,7 @@ save_unicode(PicklerObject *self, PyObject *obj)
|
|||
size = PyBytes_GET_SIZE(encoded);
|
||||
if (size > 0xffffffffL) {
|
||||
PyErr_SetString(PyExc_OverflowError,
|
||||
"cannot serialize a string larger than 4GB");
|
||||
"cannot serialize a string larger than 4 GiB");
|
||||
goto error; /* string too large */
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue