##// END OF EJS Templates
py3: use print_function in filterpyflakes.py
Robert Stanca -
r28724:cf339d6a default
parent child Browse files
Show More
@@ -2,7 +2,7 b''
2 2
3 3 # Filter output by pyflakes to control which warnings we check
4 4
5 from __future__ import absolute_import
5 from __future__ import absolute_import, print_function
6 6
7 7 import re
8 8 import sys
@@ -54,8 +54,8 b' for line in sys.stdin:'
54 54
55 55 for msgtype, line in sorted(lines, key=makekey):
56 56 sys.stdout.write(line)
57 print
57 print()
58 58
59 59 # self test of "undefined name" detection for other than 'memoryview'
60 60 if False:
61 print undefinedname
61 print(undefinedname)
@@ -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/filterpyflakes.py requires print_function
44 43 tests/generate-working-copy-states.py requires print_function
45 44 tests/get-with-headers.py requires print_function
46 45 tests/heredoctest.py requires print_function
@@ -259,7 +258,6 b''
259 258 mercurial/win*.py: error importing module: <ImportError> No module named 'msvcrt' (line *) (glob)
260 259 mercurial/windows.py: error importing module: <ImportError> No module named '_winreg' (line *) (glob)
261 260 mercurial/wireproto.py: error importing module: <SyntaxError> invalid syntax (bundle*.py, line *) (line *) (glob)
262 tests/filterpyflakes.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
263 261 tests/generate-working-copy-states.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
264 262 tests/get-with-headers.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
265 263 tests/readlink.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
General Comments 0
You need to be logged in to leave comments. Login now