mercurial/util.py
changeset 36724 ca201470abb4
parent 36701 d77c3b023393
child 36781 ffa3026d4196
--- a/mercurial/util.py	Sun Mar 04 15:16:42 2018 -0500
+++ b/mercurial/util.py	Sun Mar 04 15:55:55 2018 -0500
@@ -3097,7 +3097,7 @@
     path = urlreq.unquote(path)
     if path.startswith('ssh://-') or path.startswith('svn+ssh://-'):
         raise error.Abort(_('potentially unsafe url: %r') %
-                          (path,))
+                          (pycompat.bytestr(path),))
 
 def hidepassword(u):
     '''hide user credential in a url string'''