comparison tests/test-merge-symlinks.t @ 33721:24849d53697d

tests: clean up many print statements to be print functions instead Differential Revision: https://phab.mercurial-scm.org/D294
author Augie Fackler <augie@google.com>
date Thu, 15 Jun 2017 14:22:25 -0400
parents 75be14993fda
children 00658bb0dfd5
comparison
equal deleted inserted replaced
33720:27fb986e54d0 33721:24849d53697d
1 $ cat > echo.py <<EOF 1 $ cat > echo.py <<EOF
2 > #!$PYTHON 2 > #!$PYTHON
3 > from __future__ import print_function
3 > import os, sys 4 > import os, sys
4 > try: 5 > try:
5 > import msvcrt 6 > import msvcrt
6 > msvcrt.setmode(sys.stdout.fileno(), os.O_BINARY) 7 > msvcrt.setmode(sys.stdout.fileno(), os.O_BINARY)
7 > msvcrt.setmode(sys.stderr.fileno(), os.O_BINARY) 8 > msvcrt.setmode(sys.stderr.fileno(), os.O_BINARY)
8 > except ImportError: 9 > except ImportError:
9 > pass 10 > pass
10 > 11 >
11 > for k in ('HG_FILE', 'HG_MY_ISLINK', 'HG_OTHER_ISLINK', 'HG_BASE_ISLINK'): 12 > for k in ('HG_FILE', 'HG_MY_ISLINK', 'HG_OTHER_ISLINK', 'HG_BASE_ISLINK'):
12 > print k, os.environ[k] 13 > print(k, os.environ[k])
13 > EOF 14 > EOF
14 15
15 Create 2 heads containing the same file, once as 16 Create 2 heads containing the same file, once as
16 a file, once as a link. Bundle was generated with: 17 a file, once as a link. Bundle was generated with:
17 18