compress level

This commit is contained in:
David Rose 2009-07-02 23:17:30 +00:00
parent aa37501b8f
commit 8072733c7f

View File

@ -101,7 +101,8 @@ class PackageMaker:
source = open(uncompressedArchivePathname.toOsSpecific(), 'rb')
target = open(compressedArchivePathname.toOsSpecific(), 'wb')
z = zlib.compressobj(9)
#z = zlib.compressobj(9) # Temporary.
z = zlib.compressobj(1)
data = source.read(4096)
while data:
target.write(z.compress(data))