Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hgweb.py @ 1165:04be5eb73bb3
Fixed import needed to serve zip files which broke because of other changes.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Tue, 30 Aug 2005 19:12:17 +0200 |
parents | dacd3463ee3f |
children | 85555540a4e2 |
line wrap: on
line diff
--- 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: