comparison mercurial/ui.py @ 31359:2eee8ad77726

ui: portably bytestring-ify url object
author Augie Fackler <augie@google.com>
date Sun, 12 Mar 2017 01:59:23 -0500
parents 66f1c244b43a
children 75e4bae56068
comparison
equal deleted inserted replaced
31358:719e64bf9ec2 31359:2eee8ad77726
1614 self.url = u 1614 self.url = u
1615 self.branch = branch 1615 self.branch = branch
1616 1616
1617 self.name = name 1617 self.name = name
1618 self.rawloc = rawloc 1618 self.rawloc = rawloc
1619 self.loc = str(u) 1619 self.loc = '%s' % u
1620 1620
1621 # When given a raw location but not a symbolic name, validate the 1621 # When given a raw location but not a symbolic name, validate the
1622 # location is valid. 1622 # location is valid.
1623 if not name and not u.scheme and not self._isvalidlocalpath(self.loc): 1623 if not name and not u.scheme and not self._isvalidlocalpath(self.loc):
1624 raise ValueError('location is not a URL or path to a local ' 1624 raise ValueError('location is not a URL or path to a local '