This is an archive of the discontinued Mercurial Phabricator instance.

py3: use pycompat.xrange instead of xrange
ClosedPublic

Authored by pulkit on Nov 26 2018, 7:56 AM.

Details

Summary

xrange does not exists on Python 3.

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.Nov 26 2018, 7:56 AM
durin42 added inline comments.
tests/test-remotefilelog-histpack.py
29

why not just use pycompat.xrange directly instead of doing extra indirection?

pulkit added inline comments.Nov 27 2018, 5:10 AM
tests/test-remotefilelog-histpack.py
29

Forgot that was a thing.

pulkit retitled this revision from py3: alias xrange to range to py3: use pycompat.xrange instead of xrange.Nov 27 2018, 5:10 AM
pulkit updated this revision to Diff 12606.
This revision was automatically updated to reflect the committed changes.