def _rotate_log(self):
        self.transaction_log.close()
        os.rename(self._log_path(), "%s.%s" % (self._log_path(), time.time()))
        self._open_log()
dataset/ETHPy150Open cyberdelia/peafowl/peafowl/queue.py/PersistentQueue._rotate_log/original