comparison tests/test-hg-parseurl.py @ 28746:de5808c57f58

py3: use print_function in test-hg-parseurl.py
author Robert Stanca <robert.stanca7@gmail.com>
date Mon, 04 Apr 2016 00:29:03 +0300
parents 8a23f88131c3
children d26c4af27978
comparison
equal deleted inserted replaced
28745:8a23f88131c3 28746:de5808c57f58
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 '%s, branches: %r' % parseurl(url, branch) 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')
11 testparse('http://example.com/no/anchor/branches', branch=['foo']) 11 testparse('http://example.com/no/anchor/branches', branch=['foo'])
12 testparse('http://example.com/an/anchor/branches#bar', branch=['foo']) 12 testparse('http://example.com/an/anchor/branches#bar', branch=['foo'])