Skip to content

Commit 159c38a

Browse files
benjaminplisroach
authored andcommitted
Fix name of '\0'. (pythonGH-14222)
'\0' is the NUL byte not NULL.
1 parent 4541a86 commit 159c38a

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)