[CalendarServer-changes] [2876] CalendarServer/branches/users/cdaboo/implicit-2867/twistedcaldav/ ical.py
source_changes at macosforge.org
source_changes at macosforge.org
Tue Aug 26 09:24:02 PDT 2008
Revision: 2876
http://trac.macosforge.org/projects/calendarserver/changeset/2876
Author: cdaboo at apple.com
Date: 2008-08-26 09:24:01 -0700 (Tue, 26 Aug 2008)
Log Message:
-----------
Remove redundant if test.
Modified Paths:
--------------
CalendarServer/branches/users/cdaboo/implicit-2867/twistedcaldav/ical.py
Modified: CalendarServer/branches/users/cdaboo/implicit-2867/twistedcaldav/ical.py
===================================================================
--- CalendarServer/branches/users/cdaboo/implicit-2867/twistedcaldav/ical.py 2008-08-26 15:49:08 UTC (rev 2875)
+++ CalendarServer/branches/users/cdaboo/implicit-2867/twistedcaldav/ical.py 2008-08-26 16:24:01 UTC (rev 2876)
@@ -361,8 +361,7 @@
@return: the L{Component} of the primary type.
@raise: L{ValueError} if there is more than one primary type.
"""
- if self.name() != "VCALENDAR":
- assert self.name() == "VCALENDAR", "Must be a VCALENDAR: %r" % (self,)
+ assert self.name() == "VCALENDAR", "Must be a VCALENDAR: %r" % (self,)
result = None
for component in self.subcomponents():
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20080826/e3fc2fdc/attachment.html
More information about the calendarserver-changes
mailing list