[2.7] Fix name of '\0'. (GH-14225)

'\0' is the NUL byte not NULL..
(cherry picked from commit 7821b4c6d2)
This commit is contained in:
Benjamin Peterson 2019-06-18 23:03:35 -07:00 committed by GitHub
parent a5b1b22207
commit 598c756459
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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