Mercurial > hg
comparison tests/test-hardlinks.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 | 1bdafe1111ce |
children | 163b6b7f333c |
comparison
equal
deleted
inserted
replaced
33720:27fb986e54d0 | 33721:24849d53697d |
---|---|
1 #require hardlink | 1 #require hardlink |
2 | 2 |
3 $ cat > nlinks.py <<EOF | 3 $ cat > nlinks.py <<EOF |
4 > from __future__ import print_function | |
4 > import sys | 5 > import sys |
5 > from mercurial import util | 6 > from mercurial import util |
6 > for f in sorted(sys.stdin.readlines()): | 7 > for f in sorted(sys.stdin.readlines()): |
7 > f = f[:-1] | 8 > f = f[:-1] |
8 > print util.nlinks(f), f | 9 > print(util.nlinks(f), f) |
9 > EOF | 10 > EOF |
10 | 11 |
11 $ nlinksdir() | 12 $ nlinksdir() |
12 > { | 13 > { |
13 > find "$@" -type f | $PYTHON $TESTTMP/nlinks.py | 14 > find "$@" -type f | $PYTHON $TESTTMP/nlinks.py |