Mercurial > hg > mercurial-source
diff mercurial/bundle2.py @ 34457: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 (2017-07-24) |
parents | 5ae35a1347fd |
children | 24b7c75c6441 |
line wrap: on
line diff
--- a/mercurial/bundle2.py +++ b/mercurial/bundle2.py @@ -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:]