( )⚙ D4032 global: use pycompat.xrange()

This is an archive of the discontinued Mercurial Phabricator instance.

global: use pycompat.xrange()
ClosedPublic

Authored by indygreg on Aug 1 2018, 4:10 PM.

Details

Summary

On Python 3, our module importer automatically rewrites xrange()
to pycompat.xrange().

We want to move away from the custom importer on Python 3.

This commit converts all instances of xrange() to use
pycompat.xrange().

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

indygreg created this revision.Aug 1 2018, 4:10 PM
durin42 accepted this revision.Aug 1 2018, 4:18 PM
This revision is now accepted and ready to land.Aug 1 2018, 4:18 PM
This revision was automatically updated to reflect the committed changes.