From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Wed, 19 Jun 2019 04:55:59 +0000 (-0700) Subject: Fix name of '\0'. (GH-14222) X-Git-Tag: v3.8.0b2~95 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7edf8e50d1df1cab7b3462c836d4ce0be7d8b93b;p=python Fix name of '\0'. (GH-14222) '\0' is the NUL byte not NULL. (cherry picked from commit 7821b4c6d29933511d50bb42255e39790c6abf00) Co-authored-by: Benjamin Peterson --- diff --git a/Modules/_csv.c b/Modules/_csv.c index 7eb9d8b796..014cbb4e02 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) {