botant / py-business-calendar

Business days and custom calendar calculations for Python
MIT License
26 stars 11 forks source link

Workdaycount can cause infinite loop #2

Closed senleft closed 8 years ago

senleft commented 9 years ago
def test(self):
    calendar = Calendar()
    count = calendar.workdaycount(datetime.datetime(2015, 1, 1),
                                                  datetime.datetime(2015, 1, 31))

https://github.com/antoniobotelho/py-business-calendar/blob/master/business_calendar/business_calendar.py#L412

botant commented 8 years ago

Hi Alexandre, thanks for reporting. Belatedly, but I'm fixing this now.