--- a/mercurial/hg.py Thu Sep 07 22:36:54 2017 +0900
+++ b/mercurial/hg.py Sun Sep 03 14:32:11 2017 +0900
@@ -180,17 +180,17 @@
def defaultdest(source):
'''return default destination of clone if none is given
- >>> defaultdest('foo')
+ >>> defaultdest(b'foo')
'foo'
- >>> defaultdest('/foo/bar')
+ >>> defaultdest(b'/foo/bar')
'bar'
- >>> defaultdest('/')
+ >>> defaultdest(b'/')
''
- >>> defaultdest('')
+ >>> defaultdest(b'')
''
- >>> defaultdest('http://example.org/')
+ >>> defaultdest(b'http://example.org/')
''
- >>> defaultdest('http://example.org/foo/')
+ >>> defaultdest(b'http://example.org/foo/')
'foo'
'''
path = util.url(source).path