[CalendarServer-changes] [11352] CalendarServer/branches/users/glyph/warning-cleanups/twistedcaldav/ directory/augment.py

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


Revision: 11352
          http://trac.calendarserver.org//changeset/11352
Author:   glyph at apple.com
Date:     2013-06-13 16:21:07 -0700 (Thu, 13 Jun 2013)
Log Message:
-----------
Remove another .getchildren() call.

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

Modified: CalendarServer/branches/users/glyph/warning-cleanups/twistedcaldav/directory/augment.py
===================================================================
--- CalendarServer/branches/users/glyph/warning-cleanups/twistedcaldav/directory/augment.py	2013-06-13 23:21:06 UTC (rev 11351)
+++ CalendarServer/branches/users/glyph/warning-cleanups/twistedcaldav/directory/augment.py	2013-06-13 23:21:07 UTC (rev 11352)
@@ -429,15 +429,14 @@
     
         # Remove all UIDs present
         changed = False
-        for child in tuple(augments_node.getchildren()):
-            
+        for child in augments_node:
             if child.tag != xmlaugmentsparser.ELEMENT_RECORD:
                 continue
 
             if child.find(xmlaugmentsparser.ELEMENT_UID).text in uids:
                 augments_node.remove(child)
                 changed = True
-        
+
         # Modify xmlfile
         if changed:
             writeXML(xmlfile, augments_node)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20130613/9e5618db/attachment-0001.html>


More information about the calendarserver-changes mailing list