Issue #17193: Use binary prefixes (KiB, MiB, GiB) for memory units.
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 @@
}
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 @@
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 */
}