[Python-checkins] [2.7] Fix name of '\0'. (GH-14225)

Benjamin Peterson webhook-mailer at python.org
Wed Jun 19 02:03:46 EDT 2019


https://github.com/python/cpython/commit/598c75645911db0769132535daca8be07029221a
commit: 598c75645911db0769132535daca8be07029221a
branch: 2.7
author: Benjamin Peterson <benjamin at python.org>
committer: GitHub <noreply at github.com>
date: 2019-06-18T23:03:35-07:00
summary:

[2.7] Fix name of '\0'. (GH-14225)

'\0' is the NUL byte not NULL..
(cherry picked from commit 7821b4c6d29933511d50bb42255e39790c6abf00)

files:
M Modules/_csv.c

diff --git a/Modules/_csv.c b/Modules/_csv.c
index 88e3e9065842..a54e74ecc3ff 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) {



More information about the Python-checkins mailing list