2009-03-15 | Paul Boddie | file changeset files shortlog | Introduced default value parameters for handleProperty and makeComponent in the vContent.Parser class. Supported parser_cls parameterisation in the vCalendarParser.parse method. Added try...finally to various tests. |
paul@4 | 1 | #!/usr/bin/env python |
paul@4 | 2 | |
paul@10 | 3 | import codecs, vContent, os |
paul@4 | 4 | |
paul@10 | 5 | this_dir = os.path.split(__file__)[0] |
paul@10 | 6 | f = codecs.open(os.path.join(this_dir, "test.vcf"), encoding="utf-8") |
paul@12 | 7 | try: |
paul@12 | 8 | doc = vContent.parse(f) |
paul@12 | 9 | finally: |
paul@12 | 10 | f.close() |
paul@4 | 11 | |
paul@4 | 12 | # vim: tabstop=4 expandtab shiftwidth=4 |