Lines Matching refs:algo
458 def Compress(indata, algo, with_header=True): argument
474 if algo == 'none':
476 fname = GetOutputFilename('%s.comp.tmp' % algo)
478 if algo == 'lz4':
482 elif algo == 'lzma':
483 outfname = GetOutputFilename('%s.comp.otmp' % algo)
486 elif algo == 'gzip':
489 raise ValueError("Unknown algorithm '%s'" % algo)
495 def Decompress(indata, algo, with_header=True): argument
511 if algo == 'none':
516 fname = GetOutputFilename('%s.decomp.tmp' % algo)
519 if algo == 'lz4':
521 elif algo == 'lzma':
522 outfname = GetOutputFilename('%s.decomp.otmp' % algo)
525 elif algo == 'gzip':
528 raise ValueError("Unknown algorithm '%s'" % algo)