1.1 --- a/imiptools/data.py Fri Jan 12 19:20:38 2018 +0100
1.2 +++ b/imiptools/data.py Fri Jan 12 19:33:18 2018 +0100
1.3 @@ -3,7 +3,7 @@
1.4 """
1.5 Interpretation of vCalendar content.
1.6
1.7 -Copyright (C) 2014, 2015, 2016, 2017 Paul Boddie <paul@boddie.org.uk>
1.8 +Copyright (C) 2014, 2015, 2016, 2017, 2018 Paul Boddie <paul@boddie.org.uk>
1.9
1.10 This program is free software; you can redistribute it and/or modify it under
1.11 the terms of the GNU General Public License as published by the Free Software
1.12 @@ -635,7 +635,10 @@
1.13 return False
1.14
1.15 old_rrule = self.get_item("RRULE")
1.16 - self["RRULE"] = [rule]
1.17 + if rule:
1.18 + self["RRULE"] = [rule]
1.19 + elif old_rrule:
1.20 + del self["RRULE"]
1.21 return old_rrule != rule
1.22
1.23 def set_exceptions(self, exceptions):