Submitter | Augie Fackler |
---|---|
Date | Sept. 19, 2017, 4:08 p.m. |
Message ID | <43d20140917917f63e9b.1505837305@augie-macbookpro2.roam.corp.google.com> |
Download | mbox | patch |
Permalink | /patch/24019/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/mercurial/bundle2.py b/mercurial/bundle2.py --- a/mercurial/bundle2.py +++ b/mercurial/bundle2.py @@ -1019,7 +1019,8 @@ class bundlepart(object): msg.append(')') if not self.data: msg.append(' empty payload') - elif util.safehasattr(self.data, 'next'): + elif (util.safehasattr(self.data, 'next') + or util.safehasattr(self.data, '__next__')): msg.append(' streamed payload') else: msg.append(' %i bytes payload' % len(self.data))