Replace mktemp with mkstemp

This commit is contained in:
kevinlondon 2015-09-20 14:53:45 -07:00
parent 22260a82af
commit 31af7b3a02

View file

@ -288,7 +288,7 @@ class Revoker(object):
:class:`letsencrypt.revoker.Cert`
"""
list_path2 = tempfile.mktemp(".tmp", "LIST")
_, list_path2 = tempfile.mkstemp(".tmp", "LIST")
idx = 0
with open(self.list_path, "rb") as orgfile: