mirror of https://github.com/ansible/ansible.git
Open temp file only once
mkstemp() returns a tuple containing an OS-level handle to an open file (as would be returned by os.open()) and the absolute pathname of that file, in that order. This patch makes sure that the fd opened by tempfile.mkstemp() is re-used and closed properly.pull/19255/head
parent
39af9b5a86
commit
ead0022255
Loading…
Reference in New Issue