Comment

Anonymous

# typo...
f = os.fdopen(tmp_fd, 'w+b')

Parent comment

Anonymous

tmp_fd, tmp_name = tempfile.mkstemp(suffix='.tgz') f = os.fdopen(tmp_name, 'w+b') f.write(content) ...