[PATCH 02 of 10 V3] tests: use print_function in seq.py
Robert Stanca
robert.stanca7 at gmail.com
Sat Apr 2 11:37:34 EDT 2016
# HG changeset patch
# User Robert Stanca <robert.stanca7 at gmail.com>
# Date 1459607378 -10800
# Sat Apr 02 17:29:38 2016 +0300
# Node ID af089c63c98dce6a17e7be645c688163e446328a
# Parent 49bf532c6d4b1e18c8af98f15007d4971d184e4e
tests: use print_function in seq.py
diff -r 49bf532c6d4b -r af089c63c98d 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 49bf532c6d4b -r af089c63c98d 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
@@ -56,7 +56,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
@@ -276,7 +275,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)
More information about the Mercurial-devel
mailing list