Mercurial > hg-stable
comparison tests/test-hg-parseurl.py @ 28745:8a23f88131c3
py3: use absolute_import in test-hg-parseurl.py
author | Robert Stanca <robert.stanca7@gmail.com> |
---|---|
date | Mon, 04 Apr 2016 00:27:04 +0300 |
parents | 375872fdadba |
children | de5808c57f58 |
comparison
equal
deleted
inserted
replaced
28744:6537e14301ef | 28745:8a23f88131c3 |
---|---|
1 from mercurial.hg import parseurl | 1 from __future__ import absolute_import |
2 from mercurial.hg import ( | |
3 parseurl, | |
4 ) | |
2 | 5 |
3 def testparse(url, branch=[]): | 6 def testparse(url, branch=[]): |
4 print '%s, branches: %r' % parseurl(url, branch) | 7 print '%s, branches: %r' % parseurl(url, branch) |
5 | 8 |
6 testparse('http://example.com/no/anchor') | 9 testparse('http://example.com/no/anchor') |