X-Git-Url: http://git.tremily.us/?p=pycalendar.git;a=blobdiff_plain;f=pycalendar%2Fentry.py;fp=pycalendar%2Fentry.py;h=46bf3b679f3b5c9d29ae509e9ff5e6e436a7bc76;hp=4e5db9f6cf99b39279ffbf762286d422522d5524;hb=7b1c6e0a9d7966522328770cb4ed7464b9c6a5a1;hpb=d7abd2d4c2cb098cbb5caf0b92774130f24ba016 diff --git a/pycalendar/entry.py b/pycalendar/entry.py index 4e5db9f..46bf3b6 100644 --- a/pycalendar/entry.py +++ b/pycalendar/entry.py @@ -146,6 +146,11 @@ class Entry (dict): self._add_value(key=value, value=child, force_list=True) child_lines = [] elif not stack: # our own data, not a child's + if key == 'VERSION': + v = _text.unescape(value) + if v != '2.0': + raise NotImplementedError( + 'cannot parse VERSION {} feed'.format(v)) self._add_value(key=key, value=value) def _add_value(self, key, value, force_list=False):