From: James French Date: Mon, 4 Mar 2013 11:50:45 +0000 (+0800) Subject: Removed Duplicated function block X-Git-Tag: cgi-1.0~2 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=6f99ae7d971570e0fdadf1682464a4dd6f3cfb7c;p=frenchie%2Ficalparse.git Removed Duplicated function block - exDate listed twice after earlier merge hell --- diff --git a/parserrules.py b/parserrules.py index f1c55c1..4bb0dd5 100644 --- a/parserrules.py +++ b/parserrules.py @@ -164,22 +164,3 @@ def unwantedParams(cal): except AttributeError: continue return cal - -def exDate(cal): - '''Changes multi-EXDATE into singles (apple can't obey even simple specs). - If the remote calendar specifies a timezone then use it, otherwise use the user specified value''' - - for event in cal.vevent_list: - if not event.contents.has_key(u'exdate'): continue - dates = event.exdate.value - try: tzid = event.exdate.tzid_param - except AttributeError: tzid = '' - - del event.contents[u'exdate'] - - for date in dates: - entry = event.add(u'exdate') - entry.value = [date] - if tzid: entry.tzid_param = tzid - - return cal