Skip to content

Commit 5d50523

Browse files
benjaminpmiss-islington
authored andcommitted
Fix name of '\0'. (pythonGH-14222)
'\0' is the NUL byte not NULL. (cherry picked from commit 7821b4c) Co-authored-by: Benjamin Peterson <benjamin@python.org>
1 parent be4bbc3 commit 5d50523

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Modules/_csv.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -825,7 +825,7 @@ Reader_iternext(ReaderObj *self)
825825
if (c == '\0') {
826826
Py_DECREF(lineobj);
827827
PyErr_Format(_csvstate_global->error_obj,
828-
"line contains NULL byte");
828+
"line contains NUL");
829829
goto err;
830830
}
831831
if (parse_process_char(self, c) < 0) {

0 commit comments

Comments
 (0)