( )⚙ D1675 py3: introduce pycompat.ziplist as zip is a generator on Python 3

This is an archive of the discontinued Mercurial Phabricator instance.

py3: introduce pycompat.ziplist as zip is a generator on Python 3
ClosedPublic

Authored by pulkit on Dec 12 2017, 6:26 PM.

Details

Summary

Similar to map, the return value of zip was also turned into a generator on
Python 3. We have multiple occurences in our codebase where we retrieve the
values of zip multiple times, so let's introduce pycompat.ziplist similar to
pycompat.maplist.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

pulkit created this revision.Dec 12 2017, 6:26 PM
yuja accepted this revision.Dec 13 2017, 7:42 AM
This revision is now accepted and ready to land.Dec 13 2017, 7:42 AM
This revision was automatically updated to reflect the committed changes.