Mercurial > public > mercurial-scm > hg-stable
diff mercurial/pycompat.py @ 38822:7eba8f83129b
pycompat: add xrange alias for Python 2
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.
Differential Revision: https://phab.mercurial-scm.org/D4031
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Wed, 01 Aug 2018 12:57:15 -0700 |
parents | 152f4822d210 |
children | 45e05d39d9ce |
line wrap: on
line diff