]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix typos in error messages (thanks Arfrever).
authorAntoine Pitrou <solipsis@pitrou.net>
Sat, 4 Sep 2010 18:45:37 +0000 (18:45 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Sat, 4 Sep 2010 18:45:37 +0000 (18:45 +0000)
Modules/_pickle.c

index 96f194ecd4de4101052172cac2fbc01b2b49fc85..c47a8445f34fade8aed34717f47363fc8be13b2d 100644 (file)
@@ -497,7 +497,7 @@ unpickler_read(UnpicklerObject *self, char **s, Py_ssize_t n)
     /* XXX: Should bytearray be supported too? */
     if (!PyBytes_Check(data)) {
         PyErr_SetString(PyExc_ValueError,
-                        "read() from the underlying stream did not"
+                        "read() from the underlying stream did not "
                         "return bytes");
         Py_DECREF(data);
         return -1;
@@ -530,7 +530,7 @@ unpickler_readline(UnpicklerObject *self, char **s)
     /* XXX: Should bytearray be supported too? */
     if (!PyBytes_Check(data)) {
         PyErr_SetString(PyExc_ValueError,
-                        "readline() from the underlying stream did not"
+                        "readline() from the underlying stream did not "
                         "return bytes");
         return -1;
     }