happenings/utils/handlers.py
def _first_weekday(weekday, d):
    """
    Given a weekday and a date, will increment the date until it's
    weekday matches that of the given weekday, then that date is returned.
    """
    while weekday != d.weekday():
        d += timedelta(days=1)
    return d
def _first_weekday(weekday, d):
    while weekday != d.weekday():
        d += timedelta(days=1)
    return d
def _first_weekday ( weekday , d ) : while weekday != d . weekday ( ) : d += timedelta ( days = 1 ) return d
Given a weekday and a date, will increment the date until it's
    weekday matches that of the given weekday, then that date is returned.
Given a weekday and a date will increment the date until it s weekday matches that of the given weekday then that date is returned .