Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1afb39a

Browse files
committed
Fix typos in error messages (thanks Arfrever).
1 parent 74a69fa commit 1afb39a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Modules/_pickle.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ unpickler_read(UnpicklerObject *self, char **s, Py_ssize_t n)
497497
/* XXX: Should bytearray be supported too? */
498498
if (!PyBytes_Check(data)) {
499499
PyErr_SetString(PyExc_ValueError,
500-
"read() from the underlying stream did not"
500+
"read() from the underlying stream did not "
501501
"return bytes");
502502
Py_DECREF(data);
503503
return -1;
@@ -530,7 +530,7 @@ unpickler_readline(UnpicklerObject *self, char **s)
530530
/* XXX: Should bytearray be supported too? */
531531
if (!PyBytes_Check(data)) {
532532
PyErr_SetString(PyExc_ValueError,
533-
"readline() from the underlying stream did not"
533+
"readline() from the underlying stream did not "
534534
"return bytes");
535535
return -1;
536536
}

0 commit comments

Comments
 (0)