# HG changeset patch # User Thomas Arendsen Hein # Date 1125421937 -7200 # Node ID 04be5eb73bb3371952a3befafb211cab3386352b # Parent cf8185cf2a70abec4168afbdc15f9ced8e70c913 Fixed import needed to serve zip files which broke because of other changes. diff -r cf8185cf2a70 -r 04be5eb73bb3 mercurial/hgweb.py --- a/mercurial/hgweb.py Tue Aug 30 18:10:20 2005 +0200 +++ b/mercurial/hgweb.py Tue Aug 30 19:12:17 2005 +0200 @@ -663,10 +663,10 @@ files.sort() if type == 'zip': - import zipfile + import zipfile, tempfile + tmp = tempfile.mkstemp()[1] try: - tmp = tempfile.mkstemp()[1] zf = zipfile.ZipFile(tmp, "w", zipfile.ZIP_DEFLATED) for f in files: