def week_end(d):
    """Weeks start on the Sunday on or after the given date"""
    d = d + timedelta(7 - d.isoweekday())
    return datetime(d.year, d.month, d.day, 23, 59, 59)
dataset/ETHPy150Open mozilla/standup/standup/apps/status/helpers.py/week_end/original