Mercurial > hg
comparison tests/test-import-context.t @ 40350:633da7139e4a
py3: fix test-import-context.t
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Wed, 17 Oct 2018 21:54:49 -0400 |
parents | 5abc47d4ca6b |
children | c70bdd222dcd |
comparison
equal
deleted
inserted
replaced
40349:1524c305377f | 40350:633da7139e4a |
---|---|
17 > fp.write(char*count) | 17 > fp.write(char*count) |
18 > fp.close() | 18 > fp.close() |
19 > EOF | 19 > EOF |
20 $ cat > cat.py <<EOF | 20 $ cat > cat.py <<EOF |
21 > import sys | 21 > import sys |
22 > sys.stdout.write(repr(open(sys.argv[1], 'rb').read()) + '\n') | 22 > from mercurial import pycompat |
23 > from mercurial.utils import stringutil | |
24 > pycompat.stdout.write(b'%s\n' | |
25 > % stringutil.pprint(open(sys.argv[1], 'rb').read())) | |
23 > EOF | 26 > EOF |
24 | 27 |
25 Initialize the test repository | 28 Initialize the test repository |
26 | 29 |
27 $ hg init repo | 30 $ hg init repo |