Mercurial > hg
comparison tests/test-hgweb-commands.t @ 29485:6a98f9408a50
py3: make files use absolute_import and print_function
This patch includes addition of absolute_import and print_function to the
files where they are missing. The modern importing conventions are also followed.
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Sun, 03 Jul 2016 22:28:24 +0530 |
parents | c42a3fd5c1fc |
children | d23619990160 |
comparison
equal
deleted
inserted
replaced
29484:53b7fc7cc2bb | 29485:6a98f9408a50 |
---|---|
2102 $ HGENCODING=cp932 hg ci -m `$PYTHON -c 'print("\x94\x5c")'` | 2102 $ HGENCODING=cp932 hg ci -m `$PYTHON -c 'print("\x94\x5c")'` |
2103 | 2103 |
2104 Graph json escape of multibyte character | 2104 Graph json escape of multibyte character |
2105 | 2105 |
2106 $ get-with-headers.py 127.0.0.1:$HGPORT 'graph/' > out | 2106 $ get-with-headers.py 127.0.0.1:$HGPORT 'graph/' > out |
2107 >>> from __future__ import print_function | |
2107 >>> for line in open("out"): | 2108 >>> for line in open("out"): |
2108 ... if line.startswith("var data ="): | 2109 ... if line.startswith("var data ="): |
2109 ... print line, | 2110 ... print(line, end='') |
2110 var data = [["061dd13ba3c3", [0, 1], [[0, 0, 1, -1, ""]], "\u80fd", "test", "1970-01-01", ["unstable", true], ["tip"], ["something"]], ["cad8025a2e87", [0, 1], [[0, 0, 1, 3, "FF0000"]], "branch commit with null character: \u0000", "test", "1970-01-01", ["unstable", false], [], []], ["1d22e65f027e", [0, 1], [[0, 0, 1, 3, ""]], "branch", "test", "1970-01-01", ["stable", true], [], []], ["a4f92ed23982", [0, 1], [[0, 0, 1, 3, ""]], "Added tag 1.0 for changeset 2ef0ac749a14", "test", "1970-01-01", ["default", true], [], []], ["2ef0ac749a14", [0, 1], [], "base", "test", "1970-01-01", ["default", false], ["1.0"], ["anotherthing"]]]; | 2111 var data = [["061dd13ba3c3", [0, 1], [[0, 0, 1, -1, ""]], "\u80fd", "test", "1970-01-01", ["unstable", true], ["tip"], ["something"]], ["cad8025a2e87", [0, 1], [[0, 0, 1, 3, "FF0000"]], "branch commit with null character: \u0000", "test", "1970-01-01", ["unstable", false], [], []], ["1d22e65f027e", [0, 1], [[0, 0, 1, 3, ""]], "branch", "test", "1970-01-01", ["stable", true], [], []], ["a4f92ed23982", [0, 1], [[0, 0, 1, 3, ""]], "Added tag 1.0 for changeset 2ef0ac749a14", "test", "1970-01-01", ["default", true], [], []], ["2ef0ac749a14", [0, 1], [], "base", "test", "1970-01-01", ["default", false], ["1.0"], ["anotherthing"]]]; |
2111 | 2112 |
2112 capabilities | 2113 capabilities |
2113 | 2114 |
2114 (plain version to check the format) | 2115 (plain version to check the format) |