2008-10-18 | Paul Boddie | file changeset files shortlog | Changed the Reader class to more properly handle quoting, updating the StreamParser class to use the regular expressions provided. Fixed the handleProperty docstring. Added a vCalendar module which has specialised knowledge about that format. Added test programs for the Reader and for each module's parse function. |
paul@4 | 1 | #!/usr/bin/env python |
paul@4 | 2 | |
paul@4 | 3 | import codecs, vContent |
paul@4 | 4 | |
paul@4 | 5 | f = codecs.open("test.vcf", encoding="utf-8") |
paul@4 | 6 | doc = vContent.parse(f) |
paul@4 | 7 | |
paul@4 | 8 | # vim: tabstop=4 expandtab shiftwidth=4 |