summaryrefslogtreecommitdiff
path: root/Modules/_io
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2013-10-23 19:20:21 +0200
committerAntoine Pitrou <solipsis@pitrou.net>2013-10-23 19:20:21 +0200
commit5eda9215bd96ed113a8743d21defcec2af2601d8 (patch)
tree13bb27e5444bad05bc90d7574eb82fed4b7f1f66 /Modules/_io
parent8b9eee3bed425ae0c0d90cb4d7c3f023aed8456a (diff)
downloadcpython-5eda9215bd96ed113a8743d21defcec2af2601d8.tar.gz
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 111cc7edde..603ee60fa9 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,