# HG changeset patch # User Manuel Jacob # Date 1593486276 -7200 # Node ID cb097496138a009bc41edd0017ac74c19bea4006 # Parent 697212a830fbac295d7270684bf232f87584cbdd py3: pass URL as str Before the patch, HTTP(S) URLs were never recognized as a Subversion repository on Python 3. diff -r 697212a830fb -r cb097496138a hgext/convert/subversion.py --- a/hgext/convert/subversion.py Tue Jun 30 04:55:52 2020 +0200 +++ b/hgext/convert/subversion.py Tue Jun 30 05:04:36 2020 +0200 @@ -284,7 +284,9 @@ def httpcheck(ui, path, proto): try: opener = urlreq.buildopener() - rsp = opener.open(b'%s://%s/!svn/ver/0/.svn' % (proto, path), b'rb') + rsp = opener.open( + pycompat.strurl(b'%s://%s/!svn/ver/0/.svn' % (proto, path)), b'rb' + ) data = rsp.read() except urlerr.httperror as inst: if inst.code != 404: