##// END OF EJS Templates
py3: replace str() with bytes()
Pulkit Goyal -
r31841:9ff5a124 default
parent child Browse files
Show More
@@ -103,7 +103,7 b' def parseurl(path, branches=None):'
103 103 if u.fragment:
104 104 branch = u.fragment
105 105 u.fragment = None
106 return str(u), (branch, branches or [])
106 return bytes(u), (branch, branches or [])
107 107
108 108 schemes = {
109 109 'bundle': bundlerepo,
@@ -2799,7 +2799,7 b' class url(object):'
2799 2799 user, passwd = self.user, self.passwd
2800 2800 try:
2801 2801 self.user, self.passwd = None, None
2802 s = str(self)
2802 s = bytes(self)
2803 2803 finally:
2804 2804 self.user, self.passwd = user, passwd
2805 2805 if not self.user:
@@ -2854,7 +2854,7 b' def hidepassword(u):'
2854 2854 u = url(u)
2855 2855 if u.passwd:
2856 2856 u.passwd = '***'
2857 return str(u)
2857 return bytes(u)
2858 2858
2859 2859 def removeauth(u):
2860 2860 '''remove all authentication information from a url string'''
General Comments 0
You need to be logged in to leave comments. Login now