Skip to content

Commit 7edf8e5

Browse files
Fix name of '\0'. (GH-14222)
'\0' is the NUL byte not NULL. (cherry picked from commit 7821b4c) Co-authored-by: Benjamin Peterson <[email protected]>
1 parent fff695b commit 7edf8e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/_csv.c

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

0 commit comments

Comments
 (0)