summaryrefslogtreecommitdiffstats
path: root/Modules/_csv.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2019-06-19 04:37:58 (GMT)
committerGitHub <noreply@github.com>2019-06-19 04:37:58 (GMT)
commit7821b4c6d29933511d50bb42255e39790c6abf00 (patch)
treefa709da5b8a444c6aa7c90caee14e4963f9f9a21 /Modules/_csv.c
parent0a28f8d379544eee897979da0ce99f0b449b49dd (diff)
downloadcpython-7821b4c6d29933511d50bb42255e39790c6abf00.zip
cpython-7821b4c6d29933511d50bb42255e39790c6abf00.tar.gz
cpython-7821b4c6d29933511d50bb42255e39790c6abf00.tar.bz2
Fix name of '\0'. (GH-14222)
'\0' is the NUL byte not NULL.
Diffstat (limited to 'Modules/_csv.c')
-rw-r--r--Modules/_csv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_csv.c b/Modules/_csv.c
index 7eb9d8b..014cbb4 100644
--- a/Modules/_csv.c
+++ b/Modules/_csv.c
@@ -826,7 +826,7 @@ Reader_iternext(ReaderObj *self)
if (c == '\0') {
Py_DECREF(lineobj);
PyErr_Format(_csvstate_global->error_obj,
- "line contains NULL byte");
+ "line contains NUL");
goto err;
}
if (parse_process_char(self, c) < 0) {