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