From patchwork Tue Aug 1 20:34:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [09,of,10,py3] bundle2: work around zip() being lazy in Python 3 From: Augie Fackler X-Patchwork-Id: 22616 Message-Id: To: mercurial-devel@mercurial-scm.org Date: Tue, 01 Aug 2017 16:34:37 -0400 # HG changeset patch # User Augie Fackler # Date 1500909608 14400 # Mon Jul 24 11:20:08 2017 -0400 # Node ID fab6234e619e0e57cec4b7d0b5150bfbbede8b30 # Parent 7aac6fefd0a1a7357fb4f04b92e50131768b3f6b bundle2: work around zip() being lazy in Python 3 diff --git a/mercurial/bundle2.py b/mercurial/bundle2.py --- a/mercurial/bundle2.py +++ b/mercurial/bundle2.py @@ -1227,7 +1227,7 @@ class unbundlepart(unpackermixin): fparamsizes = _makefpartparamsizes(mancount + advcount) paramsizes = self._unpackheader(fparamsizes) # make it a list of couple again - paramsizes = zip(paramsizes[::2], paramsizes[1::2]) + paramsizes = list(zip(paramsizes[::2], paramsizes[1::2])) # split mandatory from advisory mansizes = paramsizes[:mancount] advsizes = paramsizes[mancount:]