# HG changeset patch # User Pierre-Yves David # Date 2023-08-30 11:00:14 # Node ID 0e936b950731d3b38040d0daaf55329ec2e52850 # Parent 34a27addc2868dada734cea0cb109660a4a1db73 bundle2: use sysstr to check for attribute presence We do not need bytes here. diff --git a/mercurial/bundle2.py b/mercurial/bundle2.py --- a/mercurial/bundle2.py +++ b/mercurial/bundle2.py @@ -1138,7 +1138,7 @@ class bundlepart: 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: