Home | History | Annotate | Download | only in Lib

Lines Matching refs:compresslevel

39     def __init__(self, filename, mode="r", buffering=None, compresslevel=9):
52 If mode is 'w', 'x' or 'a', compresslevel can be a number between 1
70 if not (1 <= compresslevel <= 9):
71 raise ValueError("compresslevel must be between 1 and 9")
79 self._compressor = BZ2Compressor(compresslevel)
83 self._compressor = BZ2Compressor(compresslevel)
87 self._compressor = BZ2Compressor(compresslevel)
285 def open(filename, mode="rb", compresslevel=9,
295 The default mode is "rb", and the default compresslevel is 9.
298 constructor: BZ2File(filename, mode, compresslevel). In this case,
318 binary_file = BZ2File(filename, bz_mode, compresslevel=compresslevel)
326 def compress(data, compresslevel=9):
329 compresslevel, if given, must be a number between 1 and 9.
333 comp = BZ2Compressor(compresslevel)