summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2019-06-19 06:03:35 (GMT)
committerGitHub <noreply@github.com>2019-06-19 06:03:35 (GMT)
commit598c75645911db0769132535daca8be07029221a (patch)
tree6036b02d3b4016311d1248895cd24b2ded2fce4d
parenta5b1b222077870f194ca7c8c0326eeda014f0452 (diff)
downloadcpython-598c75645911db0769132535daca8be07029221a.zip
cpython-598c75645911db0769132535daca8be07029221a.tar.gz
cpython-598c75645911db0769132535daca8be07029221a.tar.bz2
[2.7] Fix name of '\0'. (GH-14225)
'\0' is the NUL byte not NULL.. (cherry picked from commit 7821b4c6d29933511d50bb42255e39790c6abf00)
-rw-r--r--Modules/_csv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_csv.c b/Modules/_csv.c
index 88e3e90..a54e74e 100644
--- a/Modules/_csv.c
+++ b/Modules/_csv.c
@@ -818,7 +818,7 @@ Reader_iternext(ReaderObj *self)
if (c == '\0') {
Py_DECREF(lineobj);
PyErr_Format(error_obj,
- "line contains NULL byte");
+ "line contains NUL");
goto err;
}
if (parse_process_char(self, c) < 0) {