##// END OF EJS Templates
Fixed import needed to serve zip files which broke because of other changes.
Thomas Arendsen Hein -
r1165:04be5eb7 default
parent child Browse files
Show More
@@ -663,10 +663,10 b' class hgweb:'
663 files.sort()
663 files.sort()
664
664
665 if type == 'zip':
665 if type == 'zip':
666 import zipfile
666 import zipfile, tempfile
667
667
668 tmp = tempfile.mkstemp()[1]
668 try:
669 try:
669 tmp = tempfile.mkstemp()[1]
670 zf = zipfile.ZipFile(tmp, "w", zipfile.ZIP_DEFLATED)
670 zf = zipfile.ZipFile(tmp, "w", zipfile.ZIP_DEFLATED)
671
671
672 for f in files:
672 for f in files:
General Comments 0
You need to be logged in to leave comments. Login now