Replace mktemp with mkstemp

This commit is contained in:
kevinlondon
2015-09-20 14:53:45 -07:00
parent 22260a82af
commit 31af7b3a02
+1 -1
View File
@@ -288,7 +288,7 @@ class Revoker(object):
:class:`letsencrypt.revoker.Cert` :class:`letsencrypt.revoker.Cert`
""" """
list_path2 = tempfile.mktemp(".tmp", "LIST") _, list_path2 = tempfile.mkstemp(".tmp", "LIST")
idx = 0 idx = 0
with open(self.list_path, "rb") as orgfile: with open(self.list_path, "rb") as orgfile: