summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFredrik Lundh <fredrik@pythonware.com>2006-06-03 21:56:05 (GMT)
committerFredrik Lundh <fredrik@pythonware.com>2006-06-03 21:56:05 (GMT)
commit81707f1a8c1b4e4ba20d7a75ee839d08331c4669 (patch)
treee2159b6471c57666b857b797799749e0e8134db7
parent36f6d779315c8498ebdf01d47d37090f64fd9095 (diff)
downloadcpython-81707f1a8c1b4e4ba20d7a75ee839d08331c4669.zip
cpython-81707f1a8c1b4e4ba20d7a75ee839d08331c4669.tar.gz
cpython-81707f1a8c1b4e4ba20d7a75ee839d08331c4669.tar.bz2
"_self" is a said to be a reserved word in Watcom C 10.6. I'm
not sure that's really standard compliant behaviour, but I guess we have to fix that anyway...
-rw-r--r--Modules/_elementtree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_elementtree.c b/Modules/_elementtree.c
index 3dd5c26..b8c7584 100644
--- a/Modules/_elementtree.c
+++ b/Modules/_elementtree.c
@@ -1476,7 +1476,7 @@ treebuilder_new(void)
}
static PyObject*
-treebuilder(PyObject* _self, PyObject* args)
+treebuilder(PyObject* self_, PyObject* args)
{
if (!PyArg_ParseTuple(args, ":TreeBuilder"))
return NULL;
@@ -2201,7 +2201,7 @@ expat_unknown_encoding_handler(XMLParserObject *self, const XML_Char *name,
/* constructor and destructor */
static PyObject*
-xmlparser(PyObject* _self, PyObject* args, PyObject* kw)
+xmlparser(PyObject* self_, PyObject* args, PyObject* kw)
{
XMLParserObject* self;
/* FIXME: does this need to be static? */