# HG changeset patch # User Robert Stanca # Date 1459607378 -10800 # Node ID 2cd8c3b0bd11f5d323de7da7d59bd04effb83013 # Parent ff3be5a325bcbf9a1ea2fbef69ed3ecfb2f83fdf py3: use print_function in seq.py diff -r ff3be5a325bc -r 2cd8c3b0bd11 tests/seq.py --- a/tests/seq.py Sat Apr 02 17:28:35 2016 +0300 +++ b/tests/seq.py Sat Apr 02 17:29:38 2016 +0300 @@ -7,7 +7,7 @@ # seq START STOP [START, STOP] stepping by 1 # seq START STEP STOP [START, STOP] stepping by STEP -from __future__ import absolute_import +from __future__ import absolute_import, print_function import sys start = 1 @@ -21,4 +21,4 @@ stop = int(sys.argv[-1]) + 1 for i in xrange(start, stop, step): - print i + print(i) diff -r ff3be5a325bc -r 2cd8c3b0bd11 tests/test-check-py3-compat.t --- a/tests/test-check-py3-compat.t Sat Apr 02 17:28:35 2016 +0300 +++ b/tests/test-check-py3-compat.t Sat Apr 02 17:29:38 2016 +0300 @@ -54,7 +54,6 @@ tests/readlink.py requires print_function tests/revlog-formatv0.py not using absolute_import tests/run-tests.py not using absolute_import - tests/seq.py requires print_function tests/silenttestrunner.py not using absolute_import tests/silenttestrunner.py requires print_function tests/sitecustomize.py not using absolute_import @@ -265,7 +264,6 @@ tests/generate-working-copy-states.py: invalid syntax: Missing parentheses in call to 'print' (, line *) (glob) tests/get-with-headers.py: invalid syntax: Missing parentheses in call to 'print' (, line *) (glob) tests/readlink.py: invalid syntax: invalid syntax (, line *) (glob) - tests/seq.py: invalid syntax: Missing parentheses in call to 'print' (, line *) (glob) tests/silenttestrunner.py: invalid syntax: Missing parentheses in call to 'print' (, line *) (glob) tests/test-ancestor.py: invalid syntax: Missing parentheses in call to 'print' (, line *) (glob) tests/test-batching.py: invalid syntax: invalid syntax (, line *) (glob)