( )⚙ D4031 pycompat: add xrange alias for Python 2

This is an archive of the discontinued Mercurial Phabricator instance.

pycompat: add xrange alias for Python 2
ClosedPublic

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

Details

Summary

We assign xrange on Python 3 but not Python 2. Adding the missing
symbol on Python 2 allows us to use pycompat.xrange to get a
generator range function.

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

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.