Submitter | Augie Fackler |
---|---|
Date | Aug. 1, 2017, 8:34 p.m. |
Message ID | <7aac6fefd0a1a7357fb4.1501619676@augie-macbookpro2.roam.corp.google.com> |
Download | mbox | patch |
Permalink | /patch/22617/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/mercurial/bundle2.py b/mercurial/bundle2.py --- a/mercurial/bundle2.py +++ b/mercurial/bundle2.py @@ -1048,7 +1048,8 @@ class bundlepart(object): Exists to handle the different methods to provide data to a part.""" # we only support fixed size data now. # This will be improved in the future. - if util.safehasattr(self.data, 'next'): + if (util.safehasattr(self.data, 'next') + or util.safehasattr(self.data, '__next__')): buff = util.chunkbuffer(self.data) chunk = buff.read(preferedchunksize) while chunk: