mirror of
https://github.com/python/cpython.git
synced 2025-08-31 22:18:28 +00:00
Fix typos in error messages (thanks Arfrever).
This commit is contained in:
parent
74a69fa662
commit
1afb39a437
1 changed files with 2 additions and 2 deletions
|
@ -497,7 +497,7 @@ unpickler_read(UnpicklerObject *self, char **s, Py_ssize_t n)
|
||||||
/* XXX: Should bytearray be supported too? */
|
/* XXX: Should bytearray be supported too? */
|
||||||
if (!PyBytes_Check(data)) {
|
if (!PyBytes_Check(data)) {
|
||||||
PyErr_SetString(PyExc_ValueError,
|
PyErr_SetString(PyExc_ValueError,
|
||||||
"read() from the underlying stream did not"
|
"read() from the underlying stream did not "
|
||||||
"return bytes");
|
"return bytes");
|
||||||
Py_DECREF(data);
|
Py_DECREF(data);
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -530,7 +530,7 @@ unpickler_readline(UnpicklerObject *self, char **s)
|
||||||
/* XXX: Should bytearray be supported too? */
|
/* XXX: Should bytearray be supported too? */
|
||||||
if (!PyBytes_Check(data)) {
|
if (!PyBytes_Check(data)) {
|
||||||
PyErr_SetString(PyExc_ValueError,
|
PyErr_SetString(PyExc_ValueError,
|
||||||
"readline() from the underlying stream did not"
|
"readline() from the underlying stream did not "
|
||||||
"return bytes");
|
"return bytes");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue