Merge pull request #5835 from mrbanzai/ssh_wrapper_py24

Make `write_ssh_wrapper` work for Python 2.4
This commit is contained in:
Michael DeHaan 2014-01-31 05:01:43 -08:00
commit 460adb4d36

View file

@ -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=""