Made the recurrence rule parser tolerant of trailing semicolons.

pull/157/merge
sleeper 2015-03-22 05:44:58 +11:00 zatwierdzone przez Markus Unterwaditzer
rodzic 06c700adf5
commit c434cf755c
2 zmienionych plików z 7 dodań i 1 usunięć

Wyświetl plik

@ -8,6 +8,9 @@ Changelog
- Documentation fixes.
[t-8ch, thet]
- Made RRULE tolerant of trailing semicolons.
[sleeper]
3.8.4 (2014-11-01)
------------------

Wyświetl plik

@ -666,7 +666,10 @@ class vRecur(CaselessDict):
try:
recur = cls()
for pairs in ical.split(';'):
key, vals = pairs.split('=')
try:
key, vals = pairs.split('=')
except ValueError:
continue
recur[key] = cls.parse_type(key, vals)
return dict(recur)
except: