##// 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 if u.fragment:
103 if u.fragment:
104 branch = u.fragment
104 branch = u.fragment
105 u.fragment = None
105 u.fragment = None
106 return str(u), (branch, branches or [])
106 return bytes(u), (branch, branches or [])
107
107
108 schemes = {
108 schemes = {
109 'bundle': bundlerepo,
109 'bundle': bundlerepo,
@@ -2799,7 +2799,7 b' class url(object):'
2799 user, passwd = self.user, self.passwd
2799 user, passwd = self.user, self.passwd
2800 try:
2800 try:
2801 self.user, self.passwd = None, None
2801 self.user, self.passwd = None, None
2802 s = str(self)
2802 s = bytes(self)
2803 finally:
2803 finally:
2804 self.user, self.passwd = user, passwd
2804 self.user, self.passwd = user, passwd
2805 if not self.user:
2805 if not self.user:
@@ -2854,7 +2854,7 b' def hidepassword(u):'
2854 u = url(u)
2854 u = url(u)
2855 if u.passwd:
2855 if u.passwd:
2856 u.passwd = '***'
2856 u.passwd = '***'
2857 return str(u)
2857 return bytes(u)
2858
2858
2859 def removeauth(u):
2859 def removeauth(u):
2860 '''remove all authentication information from a url string'''
2860 '''remove all authentication information from a url string'''
General Comments 0
You need to be logged in to leave comments. Login now