mercurial/wireprotov1peer.py
changeset 52638 dc36535a5edc
parent 52497 61f70a6ab645
child 52644 e627cc25b6f3
--- a/mercurial/wireprotov1peer.py	Mon Jan 06 13:54:40 2025 -0500
+++ b/mercurial/wireprotov1peer.py	Mon Jan 06 14:07:43 2025 -0500
@@ -472,7 +472,7 @@
                 raise KeyError(b'unknown getbundle option type %s' % keytype)
             opts[key] = value
         f = self._callcompressable(b"getbundle", **pycompat.strkwargs(opts))
-        if any((cap.startswith(b'HG2') for cap in bundlecaps)):
+        if any(cap.startswith(b'HG2') for cap in bundlecaps):
             return bundle2.getunbundler(self.ui, f)
         else:
             return changegroupmod.cg1unpacker(f, b'UN')