1.1 --- a/imiptools/period.py Sun May 17 22:35:39 2015 +0200
1.2 +++ b/imiptools/period.py Sun May 17 22:57:15 2015 +0200
1.3 @@ -251,13 +251,15 @@
1.4 originally-defined occurrence.
1.5 """
1.6
1.7 - found = bisect_left(freebusy, Period(start, start))
1.8 + search = Period(start, start)
1.9 + found = bisect_left(freebusy, search)
1.10 +
1.11 while found < len(freebusy):
1.12 fb = freebusy[found]
1.13
1.14 # Stop looking if the start no longer matches the recurrence identifier.
1.15
1.16 - if fb.get_start_point() != start:
1.17 + if fb.get_start_point() != search.get_start_point():
1.18 return
1.19
1.20 # If the period belongs to the parent object, remove it and return.