Issue #17193: Use binary prefixes (KiB, MiB, GiB) for memory units.

This commit is contained in:
Serhiy Storchaka 2013-02-16 17:29:56 +02:00
parent a0eb809995
commit f8def28ff0
9 changed files with 21 additions and 21 deletions

View file

@ -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 */
}