def __init__(self, journal_filename):
        if os.path.exists(journal_filename):
            raise IOError("file %s already exists" % journal_filename)
        open(journal_filename, "w").close()
        self.f = open(journal_filename, "w")
        self.journal_filename = journal_filename
dataset/ETHPy150Open cournape/Bento/bento/commands/install.py/TransactionLog.__init__/original