Show More
@@ -56,7 +56,6 b'' | |||||
56 | tests/test-demandimport.py not using absolute_import |
|
56 | tests/test-demandimport.py not using absolute_import | |
57 | tests/test-demandimport.py requires print_function |
|
57 | tests/test-demandimport.py requires print_function | |
58 | tests/test-doctest.py not using absolute_import |
|
58 | tests/test-doctest.py not using absolute_import | |
59 | tests/test-hg-parseurl.py requires print_function |
|
|||
60 | tests/test-hgweb-auth.py not using absolute_import |
|
59 | tests/test-hgweb-auth.py not using absolute_import | |
61 | tests/test-hgweb-auth.py requires print_function |
|
60 | tests/test-hgweb-auth.py requires print_function | |
62 | tests/test-hgwebdir-paths.py not using absolute_import |
|
61 | tests/test-hgwebdir-paths.py not using absolute_import | |
@@ -241,7 +240,6 b'' | |||||
241 | mercurial/wireproto.py: error importing module: <SyntaxError> invalid syntax (bundle*.py, line *) (line *) (glob) |
|
240 | mercurial/wireproto.py: error importing module: <SyntaxError> invalid syntax (bundle*.py, line *) (line *) (glob) | |
242 | tests/readlink.py: invalid syntax: invalid syntax (<unknown>, line *) (glob) |
|
241 | tests/readlink.py: invalid syntax: invalid syntax (<unknown>, line *) (glob) | |
243 | tests/test-demandimport.py: invalid syntax: invalid syntax (<unknown>, line *) (glob) |
|
242 | tests/test-demandimport.py: invalid syntax: invalid syntax (<unknown>, line *) (glob) | |
244 | tests/test-hg-parseurl.py: invalid syntax: invalid syntax (<unknown>, line *) (glob) |
|
|||
245 | tests/test-hgweb-auth.py: invalid syntax: invalid syntax (<unknown>, line *) (glob) |
|
243 | tests/test-hgweb-auth.py: invalid syntax: invalid syntax (<unknown>, line *) (glob) | |
246 | tests/test-hybridencode.py: invalid syntax: invalid syntax (<unknown>, line *) (glob) |
|
244 | tests/test-hybridencode.py: invalid syntax: invalid syntax (<unknown>, line *) (glob) | |
247 | tests/test-lrucachedict.py: invalid syntax: invalid syntax (<unknown>, line *) (glob) |
|
245 | tests/test-lrucachedict.py: invalid syntax: invalid syntax (<unknown>, line *) (glob) |
@@ -1,10 +1,10 b'' | |||||
1 | from __future__ import absolute_import |
|
1 | from __future__ import absolute_import, print_function | |
2 | from mercurial.hg import ( |
|
2 | from mercurial.hg import ( | |
3 | parseurl, |
|
3 | parseurl, | |
4 | ) |
|
4 | ) | |
5 |
|
5 | |||
6 | def testparse(url, branch=[]): |
|
6 | def testparse(url, branch=[]): | |
7 |
print |
|
7 | print('%s, branches: %r' % parseurl(url, branch)) | |
8 |
|
8 | |||
9 | testparse('http://example.com/no/anchor') |
|
9 | testparse('http://example.com/no/anchor') | |
10 | testparse('http://example.com/an/anchor#foo') |
|
10 | testparse('http://example.com/an/anchor#foo') |
General Comments 0
You need to be logged in to leave comments.
Login now