def safe_open(a, b):
    if (DEMO_MODE or is_gae) and (b in 'w' or 'a' in b):
        class tmp:
            def write(self, data):
                pass
            def close(self):
                pass
        return tmp()
    return open(a, b)
dataset/ETHPy150Open uwdata/termite-data-server/web2py/applications-original/admin/controllers/default.py/safe_open/swapped operands of `in`