def get_output_file(output):
    if output == sys.stdout:
        return output
    else:
        try:
            return open(output, "w")
        except __HOLE__ as error:
            logging.warning(error)
            exit(1)
dataset/ETHPy150Open IceCTF/ctf-platform/api/api_manager.py/get_output_file