Home | History | Annotate | Download | only in python2.7

Lines Matching refs:new_file

658         new_file = _create_temporary(self._path)
661 self._pre_mailbox_hook(new_file)
665 self._pre_message_hook(new_file)
666 new_start = new_file.tell()
672 new_file.write(buffer)
673 new_toc[key] = (new_start, new_file.tell())
674 self._post_message_hook(new_file)
675 self._file_length = new_file.tell()
677 new_file.close()
678 os.remove(new_file.name)
680 _sync_close(new_file)
685 os.chmod(new_file.name, mode)
687 os.rename(new_file.name, self._path)
692 os.rename(new_file.name, self._path)