Show More
@@ -29,7 +29,7 b'' | |||
|
29 | 29 | # $ hg forget *_*_*-untracked |
|
30 | 30 | # $ rm *_*_missing-* |
|
31 | 31 | |
|
32 | from __future__ import absolute_import | |
|
32 | from __future__ import absolute_import, print_function | |
|
33 | 33 | |
|
34 | 34 | import os |
|
35 | 35 | import sys |
@@ -66,7 +66,7 b' combinations = sorted(generatestates(max' | |||
|
66 | 66 | content = [] |
|
67 | 67 | for filename, states in combinations: |
|
68 | 68 | if target == 'filelist': |
|
69 |
print |
|
|
69 | print(filename) | |
|
70 | 70 | elif target == 'state': |
|
71 | 71 | if depth == 'wc': |
|
72 | 72 | # Make sure there is content so the file gets written and can be |
@@ -75,7 +75,7 b' for filename, states in combinations:' | |||
|
75 | 75 | else: |
|
76 | 76 | content.append((filename, states[int(depth) - 1])) |
|
77 | 77 | else: |
|
78 |
print |
|
|
78 | print("unknown target:", target, file=sys.stderr) | |
|
79 | 79 | sys.exit(1) |
|
80 | 80 | |
|
81 | 81 | # write actual content |
@@ -40,7 +40,6 b'' | |||
|
40 | 40 | i18n/check-translation.py not using absolute_import |
|
41 | 41 | i18n/polib.py not using absolute_import |
|
42 | 42 | setup.py not using absolute_import |
|
43 | tests/generate-working-copy-states.py requires print_function | |
|
44 | 43 | tests/get-with-headers.py requires print_function |
|
45 | 44 | tests/heredoctest.py requires print_function |
|
46 | 45 | tests/hypothesishelpers.py not using absolute_import |
@@ -258,7 +257,6 b'' | |||
|
258 | 257 | mercurial/win*.py: error importing module: <ImportError> No module named 'msvcrt' (line *) (glob) |
|
259 | 258 | mercurial/windows.py: error importing module: <ImportError> No module named '_winreg' (line *) (glob) |
|
260 | 259 | mercurial/wireproto.py: error importing module: <SyntaxError> invalid syntax (bundle*.py, line *) (line *) (glob) |
|
261 | tests/generate-working-copy-states.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob) | |
|
262 | 260 | tests/get-with-headers.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob) |
|
263 | 261 | tests/readlink.py: invalid syntax: invalid syntax (<unknown>, line *) (glob) |
|
264 | 262 | tests/silenttestrunner.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob) |
General Comments 0
You need to be logged in to leave comments.
Login now