]> granicus.if.org Git - python/commitdiff
Fix name of '\0'. (GH-14222)
authorBenjamin Peterson <benjamin@python.org>
Wed, 19 Jun 2019 04:37:58 +0000 (21:37 -0700)
committerGitHub <noreply@github.com>
Wed, 19 Jun 2019 04:37:58 +0000 (21:37 -0700)
'\0' is the NUL byte not NULL.

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) {