comparison tests/test-pathencode.py @ 34224:0f200e2310ca

tests: add xrange alias for test-pathencode.py
author Augie Fackler <raf@durin42.com>
date Sat, 16 Sep 2017 11:47:53 -0400
parents 59481bfdb7f3
children d43340bec0f5
comparison
equal deleted inserted replaced
34223:fa9f5d6733d3 34224:0f200e2310ca
16 import sys 16 import sys
17 import time 17 import time
18 from mercurial import ( 18 from mercurial import (
19 store, 19 store,
20 ) 20 )
21
22 try:
23 xrange
24 except NameError:
25 xrange = range
21 26
22 validchars = set(map(chr, range(0, 256))) 27 validchars = set(map(chr, range(0, 256)))
23 alphanum = range(ord('A'), ord('Z')) 28 alphanum = range(ord('A'), ord('Z'))
24 29
25 for c in '\0/': 30 for c in '\0/':