Mercurial > hg
changeset 33674:9a323773216c
bundle2: work around zip() being lazy in Python 3
author | Augie Fackler <augie@google.com> |
---|---|
date | Mon, 24 Jul 2017 11:20:08 -0400 |
parents | 5ae35a1347fd |
children | 24b7c75c6441 |
files | mercurial/bundle2.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/bundle2.py Mon Jul 24 11:19:45 2017 -0400 +++ b/mercurial/bundle2.py Mon Jul 24 11:20:08 2017 -0400 @@ -1249,7 +1249,7 @@ 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:]