Skip to content

Commit 74235d0

Browse files
author
fredrik.lundh
committed
"_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... git-svn-id: http://svn.python.org/projects/python/trunk@46621 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent 4fcbd7e commit 74235d0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Modules/_elementtree.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1476,7 +1476,7 @@ treebuilder_new(void)
14761476
}
14771477

14781478
static PyObject*
1479-
treebuilder(PyObject* _self, PyObject* args)
1479+
treebuilder(PyObject* self_, PyObject* args)
14801480
{
14811481
if (!PyArg_ParseTuple(args, ":TreeBuilder"))
14821482
return NULL;
@@ -2201,7 +2201,7 @@ expat_unknown_encoding_handler(XMLParserObject *self, const XML_Char *name,
22012201
/* constructor and destructor */
22022202

22032203
static PyObject*
2204-
xmlparser(PyObject* _self, PyObject* args, PyObject* kw)
2204+
xmlparser(PyObject* self_, PyObject* args, PyObject* kw)
22052205
{
22062206
XMLParserObject* self;
22072207
/* FIXME: does this need to be static? */

0 commit comments

Comments
 (0)