def __exit__(self, *exc_info):
for tmp in self._fids:<EOL><INDENT>tmp.close()<EOL><DEDENT>if exc_info[<NUM_LIT:0>] is None:<EOL><INDENT>for fname, tmp in zip(self.fnames, self._fids):<EOL><INDENT>shutil.copyfile(tmp.name, fname)<EOL><DEDENT><DEDENT>for tmp in self._fids:<EOL><INDENT>pathlib.Path(tmp.name).unlink()<EOL><DEDENT>
Give temporary files their final names