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