[CalendarServer-changes] [11351] CalendarServer/branches/users/glyph/warning-cleanups/twistedcaldav/ directory/xmlaugmentsparser.py

source_changes at macosforge.org source_changes at macosforge.org
Thu Jun 13 16:21:06 PDT 2013


Revision: 11351
          http://trac.calendarserver.org//changeset/11351
Author:   glyph at apple.com
Date:     2013-06-13 16:21:06 -0700 (Thu, 13 Jun 2013)
Log Message:
-----------
Remove more uses of .getchildren().

Modified Paths:
--------------
    CalendarServer/branches/users/glyph/warning-cleanups/twistedcaldav/directory/xmlaugmentsparser.py

Modified: CalendarServer/branches/users/glyph/warning-cleanups/twistedcaldav/directory/xmlaugmentsparser.py
===================================================================
--- CalendarServer/branches/users/glyph/warning-cleanups/twistedcaldav/directory/xmlaugmentsparser.py	2013-06-13 23:21:06 UTC (rev 11350)
+++ CalendarServer/branches/users/glyph/warning-cleanups/twistedcaldav/directory/xmlaugmentsparser.py	2013-06-13 23:21:06 UTC (rev 11351)
@@ -89,7 +89,7 @@
         Parse the XML root node from the augments configuration document.
         @param rootnode: the L{Element} to parse.
         """
-        for child in rootnode.getchildren():
+        for child in rootnode:
             
             if child.tag != ELEMENT_RECORD:
                 raise RuntimeError("Unknown augment type: '%s' in augment file: '%s'" % (child.tag, self.xmlFile,))
@@ -97,7 +97,7 @@
             repeat = int(child.get(ATTRIBUTE_REPEAT, "1"))
 
             fields = {}
-            for node in child.getchildren():
+            for node in child:
                 
                 if node.tag in (
                     ELEMENT_UID,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20130613/4dfd7bf3/attachment-0001.html>


More information about the calendarserver-changes mailing list