(#5822) Use mkstemp
to open a temporary file (as NamedTemporaryFile doesn't take a delete
argument in Python < 2.6)
This commit is contained in:
parent
a1afd6987c
commit
8ccbf13a13
1 changed files with 2 additions and 2 deletions
|
@ -142,8 +142,8 @@ import re
|
|||
import tempfile
|
||||
|
||||
def write_ssh_wrapper():
|
||||
fh = tempfile.NamedTemporaryFile(delete=False)
|
||||
wrapper_path = fh.name
|
||||
fd, wrapper_path = tempfile.mkstemp()
|
||||
fh = os.fdopen(fd, 'w+b')
|
||||
template = """#!/bin/sh
|
||||
if [ -z "$GIT_SSH_OPTS" ]; then
|
||||
BASEOPTS=""
|
||||
|
|
Loading…
Reference in a new issue