summaryrefslogtreecommitdiffstats
path: root/Modules/_io
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2018-11-05 14:20:25 (GMT)
committerGitHub <noreply@github.com>2018-11-05 14:20:25 (GMT)
commit34fd4c20198dea6ab2fe8dc6d32d744d9bde868d (patch)
tree7219828610de765ae5c41883b590d5c6f598ade2 /Modules/_io
parentad1a25f499362eaf9cbfcafa0b8e2454eb43dcf1 (diff)
downloadcpython-34fd4c20198dea6ab2fe8dc6d32d744d9bde868d.zip
cpython-34fd4c20198dea6ab2fe8dc6d32d744d9bde868d.tar.gz
cpython-34fd4c20198dea6ab2fe8dc6d32d744d9bde868d.tar.bz2
bpo-35133: Fix mistakes when concatenate string literals on different lines. (GH-10284)
Two kind of mistakes: 1. Missed space. After concatenating there is no space between words. 2. Missed comma. Causes unintentional concatenating in a list of strings.
Diffstat (limited to 'Modules/_io')
-rw-r--r--Modules/_io/textio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_io/textio.c b/Modules/_io/textio.c
index be42777..8924834 100644
--- a/Modules/_io/textio.c
+++ b/Modules/_io/textio.c
@@ -1313,7 +1313,7 @@ _io_TextIOWrapper_reconfigure_impl(textio *self, PyObject *encoding,
/* Check if something is in the read buffer */
if (self->decoded_chars != NULL) {
if (encoding != Py_None || errors != Py_None || newline_obj != NULL) {
- _unsupported("It is not possible to set the encoding or newline"
+ _unsupported("It is not possible to set the encoding or newline "
"of stream after the first read");
return NULL;
}