Skip to content

Commit b296743

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 be4bbc3 commit b296743

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
@@ -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)