Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(97)

Unified Diff: Modules/_io/textio.c

Issue 28261: wrong error messages when using PyArg_ParseTuple to parse normal tuples
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
--- a/Modules/_io/textio.c Thu Sep 22 11:43:46 2016 +0300
+++ b/Modules/_io/textio.c Fri Sep 23 22:25:22 2016 +0300
@@ -569,8 +569,11 @@
PyObject *buffer;
unsigned long long flag;
- if (!PyArg_ParseTuple(state, "OK", &buffer, &flag))
+ if (!PyArg_ParseTuple(state,
+ "OK;IncrementalNewlineDecoder.setstate: illegal "
+ "state argument", &buffer, &flag)) {
return NULL;
+ }
self->pendingcr = (int) (flag & 1);
flag >>= 1;

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+