1.1 --- a/imiptools/data.py Sun Dec 03 22:56:53 2017 +0100
1.2 +++ b/imiptools/data.py Sun Dec 03 23:01:12 2017 +0100
1.3 @@ -1237,9 +1237,11 @@
1.4 return iter([main_period])
1.5
1.6 parameters = get_parameters(rrule)
1.7 - until = parameters and parameters.has_key("UNTIL") or None
1.8 + until = parameters and parameters.get("UNTIL") or None
1.9 until = until and to_timezone(get_datetime(until), tzid)
1.10
1.11 + # Obtain the periods generated by the rule.
1.12 +
1.13 rule_periods = get_periods_using_selector(selector, until,
1.14 main_period, tzid, start, end,
1.15 inclusive)