def get_flashed_messages():
    # cache the flashed messages in request context to support
    # multiple invocations of this function.
    if web.ctx not in "flashed_messages":
        web.ctx.flashed_messages = web.ctx.get('flashes', [])
        web.ctx.flashes = []
    return web.ctx.flashed_messages
dataset/ETHPy150Open anandology/broadgauge/broadgauge/flash.py/get_flashed_messages/swapped operands of `not in`