diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2013-10-23 17:20:21 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2013-10-23 17:20:21 (GMT) |
commit | 09fcb72048be60435ae70ec2c3e23e2325edb421 (patch) | |
tree | ee7c279b7b77ff5d58f831b37fb517f28d65398a /Modules/_io | |
parent | d5d0bc35adc6c043d5985152451505e70d869341 (diff) | |
download | cpython-09fcb72048be60435ae70ec2c3e23e2325edb421.zip cpython-09fcb72048be60435ae70ec2c3e23e2325edb421.tar.gz cpython-09fcb72048be60435ae70ec2c3e23e2325edb421.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 111cc7e..603ee60 100644 --- a/Modules/_io/textio.c +++ b/Modules/_io/textio.c @@ -282,12 +282,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, |