projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a28f8d
)
Fix name of '\0'. (GH-14222)
author
Benjamin Peterson
<benjamin@python.org>
Wed, 19 Jun 2019 04:37:58 +0000
(21:37 -0700)
committer
GitHub
<noreply@github.com>
Wed, 19 Jun 2019 04:37:58 +0000
(21:37 -0700)
'\0' is the NUL byte not NULL.
Modules/_csv.c
patch
|
blob
|
history
diff --git
a/Modules/_csv.c
b/Modules/_csv.c
index 7eb9d8b796dd7862b845eb9f991fec350ad0505f..014cbb4e0231ab587aa1e79a8ab62079763297b4 100644
(file)
--- a/
Modules/_csv.c
+++ b/
Modules/_csv.c
@@
-826,7
+826,7
@@
Reader_iternext(ReaderObj *self)
if (c == '\0') {
Py_DECREF(lineobj);
PyErr_Format(_csvstate_global->error_obj,
- "line contains NUL
L byte
");
+ "line contains NUL");
goto err;
}
if (parse_process_char(self, c) < 0) {