Patchwork D2327: py3: use range instead of xrange in tests/test-commandserver.t

login
register
mail settings
Submitter phabricator
Date Feb. 18, 2018, 1:30 p.m.
Message ID <differential-rev-PHID-DREV-fs7ewvnrdq7zr4izhrti-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/28080/
State Superseded
Headers show

Comments

phabricator - Feb. 18, 2018, 1:30 p.m.
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/D2327

AFFECTED FILES
  tests/test-commandserver.t

CHANGE DETAILS




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

Patch

diff --git a/tests/test-commandserver.t b/tests/test-commandserver.t
--- a/tests/test-commandserver.t
+++ b/tests/test-commandserver.t
@@ -411,7 +411,7 @@ 
   ...     # load _phasecache._phaserevs and _phasesets
   ...     runcommand(server, ['log', '-qr', 'draft()'])
   ...     # create draft commits by another process
-  ...     for i in xrange(5, 7):
+  ...     for i in range(5, 7):
   ...         f = open('a', 'ab')
   ...         f.seek(0, os.SEEK_END)
   ...         f.write('a\n')