tests/test-fastannotate-revmap.py
changeset 39407 aa95fd0257df
parent 39250 659f010ffa7e
child 40946 5fd63bca43a4
--- a/tests/test-fastannotate-revmap.py	Mon Sep 03 13:52:49 2018 +0300
+++ b/tests/test-fastannotate-revmap.py	Mon Sep 03 13:53:30 2018 +0300
@@ -3,9 +3,16 @@
 import os
 import tempfile
 
-from mercurial import util
+from mercurial import (
+    pycompat,
+    util,
+)
+
 from hgext.fastannotate import error, revmap
 
+if pycompat.ispy3:
+    xrange = range
+
 def genhsh(i):
     return chr(i) + b'\0' * 19