diff options
Diffstat (limited to 'web_infrastructure')
-rw-r--r-- | web_infrastructure/jenkins_plugin.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web_infrastructure/jenkins_plugin.py b/web_infrastructure/jenkins_plugin.py index 4dc2c345..266d7f49 100644 --- a/web_infrastructure/jenkins_plugin.py +++ b/web_infrastructure/jenkins_plugin.py @@ -564,7 +564,7 @@ class JenkinsPlugin(object): msg_exception="Updates download failed.") # Write the updates file - updates_file = tempfile.mktemp() + updates_file = tempfile.mkstemp() try: fd = open(updates_file, 'wb') @@ -641,7 +641,7 @@ class JenkinsPlugin(object): def _write_file(self, f, data): # Store the plugin into a temp file and then move it - tmp_f = tempfile.mktemp() + tmp_f = tempfile.mkstemp() try: fd = open(tmp_f, 'wb') |