]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
"_self" is a said to be a reserved word in Watcom C 10.6. I'm
authorFredrik Lundh <fredrik@pythonware.com>
Sat, 3 Jun 2006 21:56:05 +0000 (21:56 +0000)
committerFredrik Lundh <fredrik@pythonware.com>
Sat, 3 Jun 2006 21:56:05 +0000 (21:56 +0000)
not sure that's really standard compliant behaviour, but I guess
we have to fix that anyway...

Modules/_elementtree.c

index 3dd5c2608adb8041ee0965ee1471056ee9c72eb3..b8c758405c26ae1d6db86f36f7ad3441d7215d6f 100644 (file)
@@ -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? */