]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[2.7] Fix name of '\0'. (GH-14225)
authorBenjamin Peterson <benjamin@python.org>
Wed, 19 Jun 2019 06:03:35 +0000 (23:03 -0700)
committerGitHub <noreply@github.com>
Wed, 19 Jun 2019 06:03:35 +0000 (23:03 -0700)
'\0' is the NUL byte not NULL..
(cherry picked from commit 7821b4c6d29933511d50bb42255e39790c6abf00)

Modules/_csv.c

index 88e3e9065842e80c410e3b0f06884dd4332e637c..a54e74ecc3ff1765e91ed1cc37a373c1c75617a7 100644 (file)
@@ -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) {