def commit(self):
        for kind, entry in self:
            if kind == JOURNAL_ENTRY_BACKUP:
                os.unlink(self.root + entry.new())
            elif kind == JOURNAL_ENTRY_TRYCLEANUPDIR:
                # XXX would be nice to avoid the try/except here with some C
                try:
                    os.rmdir(self.root + entry.new())
                except __HOLE__:
                    pass
        self.close()
dataset/ETHPy150Open sassoftware/conary/conary/local/journal.py/JobJournal.commit