vContent

tests/test_calendar.py

83:592a4701a05f
2017-12-01 Paul Boddie Added various functions and methods to facilitate rule selector editing. Reorganised rule period generation to permit modified selectors to be used instead of existing rule property values.
     1 #!/usr/bin/env python     2      3 import codecs, vCalendar, os     4      5 this_dir = os.path.split(__file__)[0]     6 f = codecs.open(os.path.join(this_dir, "test.ics"), encoding="utf-8")     7 try:     8     doc = vCalendar.parse(f)     9 finally:    10     f.close()    11     12 # vim: tabstop=4 expandtab shiftwidth=4