##// END OF EJS Templates
py3: use print_function in seq.py
Robert Stanca -
r28722:2cd8c3b0 default
parent child Browse files
Show More
@@ -7,7 +7,7 b''
7 7 # seq START STOP [START, STOP] stepping by 1
8 8 # seq START STEP STOP [START, STOP] stepping by STEP
9 9
10 from __future__ import absolute_import
10 from __future__ import absolute_import, print_function
11 11 import sys
12 12
13 13 start = 1
@@ -21,4 +21,4 b' if len(sys.argv) > 3:'
21 21 stop = int(sys.argv[-1]) + 1
22 22
23 23 for i in xrange(start, stop, step):
24 print i
24 print(i)
@@ -54,7 +54,6 b''
54 54 tests/readlink.py requires print_function
55 55 tests/revlog-formatv0.py not using absolute_import
56 56 tests/run-tests.py not using absolute_import
57 tests/seq.py requires print_function
58 57 tests/silenttestrunner.py not using absolute_import
59 58 tests/silenttestrunner.py requires print_function
60 59 tests/sitecustomize.py not using absolute_import
@@ -265,7 +264,6 b''
265 264 tests/generate-working-copy-states.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
266 265 tests/get-with-headers.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
267 266 tests/readlink.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
268 tests/seq.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
269 267 tests/silenttestrunner.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
270 268 tests/test-ancestor.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
271 269 tests/test-batching.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
General Comments 0
You need to be logged in to leave comments. Login now