2008-10-23 | Paul Boddie | file changeset files shortlog | Added a vCalendarStreamParser class which decodes content, reducing the vCalendarParser class to something which only assembles the content. Fixed the decode_parameters method to actually return the decoded parameters. Added test files and new tests for stream parsing. Added iterparse functions and made the vCalendar.parse and vCalendar.iterparse functions use their vContent counterparts. |
paul@4 | 1 | #!/usr/bin/env python |
paul@4 | 2 | |
paul@4 | 3 | import codecs, vCalendar |
paul@4 | 4 | |
paul@5 | 5 | f = codecs.open("tests/test.ics", encoding="utf-8") |
paul@4 | 6 | doc = vCalendar.parse(f) |
paul@4 | 7 | |
paul@4 | 8 | # vim: tabstop=4 expandtab shiftwidth=4 |