diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-06-19 04:55:59 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-19 04:55:59 (GMT) |
commit | 7edf8e50d1df1cab7b3462c836d4ce0be7d8b93b (patch) | |
tree | d731a7e88919443e0e4e8b657d124a9388488a27 /Modules/_csv.c | |
parent | fff695b9abaa1075ceee95880dba26307df1e7e5 (diff) | |
download | cpython-7edf8e50d1df1cab7b3462c836d4ce0be7d8b93b.zip cpython-7edf8e50d1df1cab7b3462c836d4ce0be7d8b93b.tar.gz cpython-7edf8e50d1df1cab7b3462c836d4ce0be7d8b93b.tar.bz2 |
Fix name of '\0'. (GH-14222)
'\0' is the NUL byte not NULL.
(cherry picked from commit 7821b4c6d29933511d50bb42255e39790c6abf00)
Co-authored-by: Benjamin Peterson <benjamin@python.org>
Diffstat (limited to 'Modules/_csv.c')
-rw-r--r-- | Modules/_csv.c | 2 |
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) { |