diff --git a/mercurial/bundle2.py b/mercurial/bundle2.py --- a/mercurial/bundle2.py +++ b/mercurial/bundle2.py @@ -515,7 +515,7 @@ class bundle20(object): """setup core part compression to """ if alg in (None, 'UN'): return - assert not any(n.lower() == 'Compression' for n, v in self._params) + assert not any(n.lower() == 'compression' for n, v in self._params) self.addparam('Compression', alg) self._compengine = util.compengines.forbundletype(alg) self._compopts = compopts