[Lxml-checkins] r49908 - in lxml/trunk: . src/lxml

scoder at codespeak.net scoder at codespeak.net
Tue Dec 18 22:28:59 CET 2007


Author: scoder
Date: Tue Dec 18 22:28:59 2007
New Revision: 49908

Modified:
   lxml/trunk/   (props changed)
   lxml/trunk/src/lxml/lxml.etree.pyx
Log:
 r3105 at delle:  sbehnel | 2007-12-18 11:17:22 +0100
 mark getchildren() as deprecated


Modified: lxml/trunk/src/lxml/lxml.etree.pyx
==============================================================================
--- lxml/trunk/src/lxml/lxml.etree.pyx	(original)
+++ lxml/trunk/src/lxml/lxml.etree.pyx	Tue Dec 18 22:28:59 2007
@@ -1109,15 +1109,13 @@
         You can also pass the Element, Comment, ProcessingInstruction and
         Entity factory functions to look only for the specific element type.
 
-        Note that this method is deprecated as of ElementTree 1.3 and
-        lxml 2.0.  It returns an iterator in lxml, which diverges from
-        the original ElementTree behaviour.  If you want an efficient
-        iterator, use the ``element.iter()`` method instead.  You
-        should only use this method in new code if you require
-        backwards compatibility with older versions of lxml or
-        ElementTree.
-
-        @deprecated
+        @deprecated: Note that this method is deprecated as of
+        ElementTree 1.3 and lxml 2.0.  It returns an iterator in lxml,
+        which diverges from the original ElementTree behaviour.  If
+        you want an efficient iterator, use the ``element.iter()``
+        method instead.  You should only use this method in new code
+        if you require backwards compatibility with older versions of
+        lxml or ElementTree.
         """
         return ElementDepthFirstIterator(self, tag)
 
@@ -1473,14 +1471,13 @@
         You can also pass the Element, Comment, ProcessingInstruction and
         Entity factory functions to look only for the specific element type.
 
-        Note that this method is deprecated as of ElementTree 1.3 and
-        lxml 2.0.  It returns an iterator in lxml, which diverges from
-        the original ElementTree behaviour.  If you want an efficient
-        iterator, use the ``tree.iter()`` method instead.  You should
-        only use this method in new code if you require backwards
-        compatibility with older versions of lxml or ElementTree.
-
-        @deprecated
+        @deprecated: Note that this method is deprecated as of
+        ElementTree 1.3 and lxml 2.0.  It returns an iterator in lxml,
+        which diverges from the original ElementTree behaviour.  If
+        you want an efficient iterator, use the ``tree.iter()`` method
+        instead.  You should only use this method in new code if you
+        require backwards compatibility with older versions of lxml or
+        ElementTree.
         """
         root = self.getroot()
         if root is None:


More information about the lxml-checkins mailing list