diff -r 34a27addc286 -r 0e936b950731 mercurial/bundle2.py --- a/mercurial/bundle2.py Wed Aug 30 13:32:45 2023 +0200 +++ b/mercurial/bundle2.py Wed Aug 30 13:00:14 2023 +0200 @@ -1138,7 +1138,7 @@ if not self.data: msg.append(b' empty payload') elif util.safehasattr(self.data, 'next') or util.safehasattr( - self.data, b'__next__' + self.data, '__next__' ): msg.append(b' streamed payload') else: