]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix name of '\0'. (GH-14222)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 19 Jun 2019 04:59:54 +0000 (21:59 -0700)
committerGitHub <noreply@github.com>
Wed, 19 Jun 2019 04:59:54 +0000 (21:59 -0700)
'\0' is the NUL byte not NULL.
(cherry picked from commit 7821b4c6d29933511d50bb42255e39790c6abf00)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
Modules/_csv.c

index dd0b3c8107eb6eadde052266645269fb27372520..6f7becfa886146260422b88e9c173e57e5c76d56 100644 (file)
@@ -825,7 +825,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) {