1.1 --- a/imiptools/period.py Tue Mar 24 23:22:05 2015 +0100
1.2 +++ b/imiptools/period.py Tue Mar 24 23:33:15 2015 +0100
1.3 @@ -184,10 +184,11 @@
1.4
1.5 "Remove from 'freebusy' all periods overlapping with 'period'."
1.6
1.7 - start, end = get_overlapping(freebusy, period)
1.8 + overlapping = get_overlapping(freebusy, period)
1.9
1.10 - if start != end:
1.11 - del freebusy[start:end]
1.12 + if overlapping:
1.13 + for fb in overlapping:
1.14 + freebusy.remove(fb)
1.15
1.16 def replace_overlapping(freebusy, period, replacements):
1.17