##// END OF EJS Templates
changegroup.py: delay the loading of the bz2 and zlib modules
Alexis S. L. Carvalho -
r3762:b9d3e12d default
parent child Browse files
Show More
@@ -50,8 +50,8 class nocompress(object):
50 50 bundletypes = {
51 51 "": ("", nocompress),
52 52 "HG10UN": ("HG10UN", nocompress),
53 "HG10BZ": ("HG10", bz2.BZ2Compressor),
54 "HG10GZ": ("HG10GZ", zlib.compressobj),
53 "HG10BZ": ("HG10", lambda: bz2.BZ2Compressor()),
54 "HG10GZ": ("HG10GZ", lambda: zlib.compressobj()),
55 55 }
56 56
57 57 def writebundle(cg, filename, bundletype):
General Comments 0
You need to be logged in to leave comments. Login now