# HG changeset patch # User Matt Harbison # Date 1539827689 14400 # Node ID 633da7139e4aa87d9284544f605c08feb547bd64 # Parent 1524c305377fbf49a64655a1b109d1b3580affd7 py3: fix test-import-context.t diff -r 1524c305377f -r 633da7139e4a tests/test-import-context.t --- a/tests/test-import-context.t Mon Oct 15 22:02:10 2018 -0400 +++ b/tests/test-import-context.t Wed Oct 17 21:54:49 2018 -0400 @@ -19,7 +19,10 @@ > EOF $ cat > cat.py < import sys - > sys.stdout.write(repr(open(sys.argv[1], 'rb').read()) + '\n') + > from mercurial import pycompat + > from mercurial.utils import stringutil + > pycompat.stdout.write(b'%s\n' + > % stringutil.pprint(open(sys.argv[1], 'rb').read())) > EOF Initialize the test repository