Comment

Anonymous

NM... Follow Richard's suggestion.

Parent comment

Anonymous

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