Show More
@@ -6,6 +6,7 b' import sys' | |||||
6 |
|
6 | |||
7 | from mercurial import ( |
|
7 | from mercurial import ( | |
8 | mdiff, |
|
8 | mdiff, | |
|
9 | pycompat, | |||
9 | ) |
|
10 | ) | |
10 |
|
11 | |||
11 | def reducetest(a, b): |
|
12 | def reducetest(a, b): | |
@@ -63,7 +64,7 b' def test(a, b):' | |||||
63 | def rndtest(size, noise): |
|
64 | def rndtest(size, noise): | |
64 | a = [] |
|
65 | a = [] | |
65 | src = " aaaaaaaabbbbccd" |
|
66 | src = " aaaaaaaabbbbccd" | |
66 | for x in xrange(size): |
|
67 | for x in pycompat.xrange(size): | |
67 | a.append(src[random.randint(0, len(src) - 1)]) |
|
68 | a.append(src[random.randint(0, len(src) - 1)]) | |
68 |
|
69 | |||
69 | while True: |
|
70 | while True: |
General Comments 0
You need to be logged in to leave comments.
Login now