]> granicus.if.org Git - python/commitdiff
Fix name of '\0'. (GH-14222)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 19 Jun 2019 04:55:59 +0000 (21:55 -0700)
committerGitHub <noreply@github.com>
Wed, 19 Jun 2019 04:55:59 +0000 (21:55 -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 7eb9d8b796dd7862b845eb9f991fec350ad0505f..014cbb4e0231ab587aa1e79a8ab62079763297b4 100644 (file)
@@ -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) {