def weekend_to_monday(dt):
    if dt.weekday() == 6:
        return dt + timedelta(1)
    elif dt.weekday() == 5:
        return dt + timedelta(2)
    return dt
Reimplemented to hide on certain key presses and on text edit focus
dataset/ETHPy150Open pydata/pandas/pandas/tseries/holiday.py/weekend_to_monday--crossover with--dataset/ETHPy150Open enthought/pyface/pyface/ui/qt4/console/call_tip_widget.py/CallTipWidget.eventFilter