D5302: py3: alias xrange to range

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Mon Nov 26 17:41:20 EST 2018


durin42 added inline comments.

INLINE COMMENTS

> test-remotefilelog-histpack.py:29
> +if pycompat.ispy3:
> +    xrange = range
> +

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

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D5302

To: pulkit, #hg-reviewers
Cc: durin42, mjpieters, mercurial-devel


More information about the Mercurial-devel mailing list