equal
deleted
inserted
replaced
513 |
513 |
514 def setcompression(self, alg, compopts=None): |
514 def setcompression(self, alg, compopts=None): |
515 """setup core part compression to <alg>""" |
515 """setup core part compression to <alg>""" |
516 if alg in (None, 'UN'): |
516 if alg in (None, 'UN'): |
517 return |
517 return |
518 assert not any(n.lower() == 'Compression' for n, v in self._params) |
518 assert not any(n.lower() == 'compression' for n, v in self._params) |
519 self.addparam('Compression', alg) |
519 self.addparam('Compression', alg) |
520 self._compengine = util.compengines.forbundletype(alg) |
520 self._compengine = util.compengines.forbundletype(alg) |
521 self._compopts = compopts |
521 self._compopts = compopts |
522 |
522 |
523 @property |
523 @property |