[CalendarServer-changes] [11140] CalendarServer/trunk/twistedcaldav/storebridge.py

source_changes at macosforge.org source_changes at macosforge.org
Mon May 6 11:50:00 PDT 2013


Revision: 11140
          http://trac.calendarserver.org//changeset/11140
Author:   cdaboo at apple.com
Date:     2013-05-06 11:50:00 -0700 (Mon, 06 May 2013)
Log Message:
-----------
PyFlakes.

Modified Paths:
--------------
    CalendarServer/trunk/twistedcaldav/storebridge.py

Modified: CalendarServer/trunk/twistedcaldav/storebridge.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/storebridge.py	2013-05-06 17:38:07 UTC (rev 11139)
+++ CalendarServer/trunk/twistedcaldav/storebridge.py	2013-05-06 18:50:00 UTC (rev 11140)
@@ -71,7 +71,7 @@
     UIDExistsElsewhereError, InvalidUIDError, InvalidResourceMove, \
     InvalidComponentForStoreError
 from txdav.idav import PropertyChangeNotAllowedError
-from txdav.xml import element as davxml, element
+from txdav.xml import element as davxml
 from txdav.xml.base import dav_namespace, WebDAVUnknownElement, encodeXMLName
 
 from urlparse import urlsplit
@@ -1482,9 +1482,9 @@
         attendees = [attendee.split("urn:uuid:")[-1] for attendee in attendees]
         document = yield davXMLFromStream(request.stream)
         for ace in document.root_element.children:
-            for element in ace.children:
-                if isinstance(element, davxml.Principal):
-                    for href in element.children:
+            for child in ace.children:
+                if isinstance(child, davxml.Principal):
+                    for href in child.children:
                         principalURI = href.children[0].data
                         uidsPrefix = '/principals/__uids__/'
                         if not principalURI.startswith(uidsPrefix):
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20130506/2cc9351d/attachment.html>


More information about the calendarserver-changes mailing list