D2332: py3: use range instead of xrange on py3 in tests/test-ui-verbosity.py

2018-02-18 Thread pulkit (Pulkit Goyal)
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG2507bf180413: py3: use range instead of xrange on py3 in 
tests/test-ui-verbosity.py (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2332?vs=5861=5876

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

AFFECTED FILES
  tests/test-ui-verbosity.py

CHANGE DETAILS

diff --git a/tests/test-ui-verbosity.py b/tests/test-ui-verbosity.py
--- a/tests/test-ui-verbosity.py
+++ b/tests/test-ui-verbosity.py
@@ -2,9 +2,13 @@
 
 import os
 from mercurial import (
+pycompat,
 ui as uimod,
 )
 
+if pycompat.ispy3:
+xrange = range
+
 hgrc = os.environ['HGRCPATH']
 f = open(hgrc)
 basehgrc = f.read()



To: pulkit, #hg-reviewers
Cc: mercurial-devel
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


D2332: py3: use range instead of xrange on py3 in tests/test-ui-verbosity.py

2018-02-18 Thread pulkit (Pulkit Goyal)
pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  xrange is not present on Python 3.

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  tests/test-ui-verbosity.py

CHANGE DETAILS

diff --git a/tests/test-ui-verbosity.py b/tests/test-ui-verbosity.py
--- a/tests/test-ui-verbosity.py
+++ b/tests/test-ui-verbosity.py
@@ -2,9 +2,13 @@
 
 import os
 from mercurial import (
+pycompat,
 ui as uimod,
 )
 
+if pycompat.ispy3:
+xrange = range
+
 hgrc = os.environ['HGRCPATH']
 f = open(hgrc)
 basehgrc = f.read()



To: pulkit, #hg-reviewers
Cc: mercurial-devel
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel