From henrybhaller at gmail.com Fri Apr 15 17:18:19 2011 From: henrybhaller at gmail.com (Henry Haller) Date: Fri, 15 Apr 2011 11:18:19 -0400 Subject: [icalendar-dev] saving/loading calendars problem Message-ID: Is there a bug in the Calendar.as_string() method, or am I doing something wrong? cal2 = Calendar.from_string(cal.as_string()) Doing this always gives me an error, no matter whether I import a calendar or make my own within icalendar. If it's a bug, I think it's with the Calendar.as_string() because when I do this: cal = Calendar.from_string(open("example.ics", "rb).read()) f = open("example.ics.copy", "wb") f.write(cal.as_string()) then when I do $diff example.ics example.ics.copy there is a lot of difference, but when I do $cp example.ics example.ics.cp_copy I find no difference. Is there some other way to export from icalendar?