diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2013-10-23 17:21:55 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2013-10-23 17:21:55 (GMT) |
commit | 4d397008cdbcc653ff69fc9a39d29e2aaae07512 (patch) | |
tree | 3d00f2aef5e19aebd9abd7a88a5cb854ee325305 /Modules/_io | |
parent | 6c6b3f770d0b54eeb3e42b38e1fe5d893c38dd6e (diff) | |
parent | 09fcb72048be60435ae70ec2c3e23e2325edb421 (diff) | |
download | cpython-4d397008cdbcc653ff69fc9a39d29e2aaae07512.zip cpython-4d397008cdbcc653ff69fc9a39d29e2aaae07512.tar.gz cpython-4d397008cdbcc653ff69fc9a39d29e2aaae07512.tar.bz2 |
Issue #19356: Avoid using a C variabled named "_self", it's a reserved word in some C compilers.
Diffstat (limited to 'Modules/_io')
-rw-r--r-- | Modules/_io/textio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_io/textio.c b/Modules/_io/textio.c index 2db37d3..fb89a17 100644 --- a/Modules/_io/textio.c +++ b/Modules/_io/textio.c @@ -293,12 +293,12 @@ check_decoded(PyObject *decoded) #define SEEN_ALL (SEEN_CR | SEEN_LF | SEEN_CRLF) PyObject * -_PyIncrementalNewlineDecoder_decode(PyObject *_self, +_PyIncrementalNewlineDecoder_decode(PyObject *myself, PyObject *input, int final) { PyObject *output; Py_ssize_t output_len; - nldecoder_object *self = (nldecoder_object *) _self; + nldecoder_object *self = (nldecoder_object *) myself; if (self->decoder == NULL) { PyErr_SetString(PyExc_ValueError, |