[Lxml-checkins] r51155 - in lxml/trunk: . src/lxml
scoder at codespeak.net
scoder at codespeak.net
Thu Jan 31 15:31:27 CET 2008
Author: scoder
Date: Thu Jan 31 15:31:27 2008
New Revision: 51155
Modified:
lxml/trunk/ (props changed)
lxml/trunk/src/lxml/lxml.etree.pyx
Log:
r3368 at delle: sbehnel | 2008-01-31 15:00:31 +0100
signature cleanup
Modified: lxml/trunk/src/lxml/lxml.etree.pyx
==============================================================================
--- lxml/trunk/src/lxml/lxml.etree.pyx (original)
+++ lxml/trunk/src/lxml/lxml.etree.pyx Thu Jan 31 15:31:27 2008
@@ -925,7 +925,7 @@
def __reversed__(self):
return ElementChildIterator(self, reversed=True)
- def index(self, _Element x not None, start=None, stop=None):
+ def index(self, _Element child not None, start=None, stop=None):
"""Find the position of the child within the parent.
This method is not part of the original ElementTree API.
@@ -934,7 +934,7 @@
cdef Py_ssize_t c_start, c_stop
cdef xmlNode* c_child
cdef xmlNode* c_start_node
- c_child = x._c_node
+ c_child = child._c_node
if c_child.parent is not self._c_node:
raise ValueError("Element is not a child of this node.")
More information about the lxml-checkins
mailing list