Mercurial > hg
changeset 28722:2cd8c3b0bd11
py3: use print_function in seq.py
author | Robert Stanca <robert.stanca7@gmail.com> |
---|---|
date | Sat, 02 Apr 2016 17:29:38 +0300 |
parents | ff3be5a325bc |
children | 18e738038d78 |
files | tests/seq.py tests/test-check-py3-compat.t |
diffstat | 2 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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)
--- 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' (<unknown>, line *) (glob) tests/get-with-headers.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob) tests/readlink.py: invalid syntax: invalid syntax (<unknown>, line *) (glob) - tests/seq.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob) tests/silenttestrunner.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob) tests/test-ancestor.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob) tests/test-batching.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)