utils.py
branchtls-sprint
changeset 1711 182536159750
parent 1705 d5e02874ae77
child 1751 59e9a4f5bfea
equal deleted inserted replaced
1710:8c717cc0b353 1711:182536159750
    70                     date as parameter, and returning True if the date
    70                     date as parameter, and returning True if the date
    71                     should be included.
    71                     should be included.
    72     """
    72     """
    73     assert not (incday and incmonth)
    73     assert not (incday and incmonth)
    74     begin = todate(begin)
    74     begin = todate(begin)
       
    75     end = todate(end)
    75     if incmonth:
    76     if incmonth:
    76         while begin < end:
    77         while begin < end:
    77             begin = next_month(begin, incmonth)
    78             begin = next_month(begin, incmonth)
    78             yield begin
    79             yield begin
    79     else:
    80     else: