summaryrefslogtreecommitdiffstats
path: root/Modules/_io
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2013-10-23 17:20:21 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2013-10-23 17:20:21 (GMT)
commit09fcb72048be60435ae70ec2c3e23e2325edb421 (patch)
treeee7c279b7b77ff5d58f831b37fb517f28d65398a /Modules/_io
parentd5d0bc35adc6c043d5985152451505e70d869341 (diff)
downloadcpython-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.c4
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,