summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authordluyer <53582923+dluyer@users.noreply.github.com>2019-08-06 11:01:14 -0700
committerGitHub <noreply@github.com>2019-08-06 11:01:14 -0700
commitb3ce0cdc66c849930a9044277f84c4d85be0d242 (patch)
tree94220714e5a8c9df375979c666684406a1016187 /tests
parentaf9d9d91bb80d3c7783a0e6fe8d1bb67790e615a (diff)
downloadpexpect-git-b3ce0cdc66c849930a9044277f84c4d85be0d242.tar.gz
s/xrange/range/ for Python3
Diffstat (limited to 'tests')
-rwxr-xr-xtests/test_expect.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_expect.py b/tests/test_expect.py
index 2c74744..c62231a 100755
--- a/tests/test_expect.py
+++ b/tests/test_expect.py
@@ -38,7 +38,7 @@ from .utils import no_coverage_env
FILTER=''.join([(len(repr(chr(x)))==3) and chr(x) or '.' for x in range(256)])
def hex_dump(src, length=16):
result=[]
- for i in xrange(0, len(src), length):
+ for i in range(0, len(src), length):
s = src[i:i+length]
hexa = ' '.join(["%02X"%ord(x) for x in s])
printable = s.translate(FILTER)