test-hg-parseurl: stop direct symbol import of mercurial.hg.parseurl
authorYuya Nishihara <yuya@tcha.org>
Tue, 05 Apr 2016 23:18:52 +0900
changeset 28806 d26c4af27978
parent 28805 efc739551c17
child 28807 736f64b23a24
test-hg-parseurl: stop direct symbol import of mercurial.hg.parseurl
tests/test-hg-parseurl.py
--- a/tests/test-hg-parseurl.py	Tue Apr 05 23:17:43 2016 +0900
+++ b/tests/test-hg-parseurl.py	Tue Apr 05 23:18:52 2016 +0900
@@ -1,10 +1,11 @@
 from __future__ import absolute_import, print_function
-from mercurial.hg import (
-    parseurl,
+
+from mercurial import (
+    hg,
 )
 
 def testparse(url, branch=[]):
-    print('%s, branches: %r' % parseurl(url, branch))
+    print('%s, branches: %r' % hg.parseurl(url, branch))
 
 testparse('http://example.com/no/anchor')
 testparse('http://example.com/an/anchor#foo')