summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-02-16 15:30:31 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-02-16 15:30:31 (GMT)
commit0cad7eca45a3bd081fa0c2dd18e05c8202661cf9 (patch)
tree940e23e6f0193a32b141a5e0f91e6b350eacd540 /Modules
parent165ee9645b6518f36c3ec23d0e64d2956e42c5c4 (diff)
parentf8def28ff03f3167bd0becabab4dc5d70ee22033 (diff)
downloadcpython-0cad7eca45a3bd081fa0c2dd18e05c8202661cf9.zip
cpython-0cad7eca45a3bd081fa0c2dd18e05c8202661cf9.tar.gz
cpython-0cad7eca45a3bd081fa0c2dd18e05c8202661cf9.tar.bz2
Issue #17193: Use binary prefixes (KiB, MiB, GiB) for memory units.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_pickle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_pickle.c b/Modules/_pickle.c
index c0b5cf5..c213a51 100644
--- a/Modules/_pickle.c
+++ b/Modules/_pickle.c
@@ -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 */
}