##// END OF EJS Templates
util: don't encode ':' in url paths...
Mads Kiilerich -
r15452:de7e2fba default
parent child Browse files
Show More
@@ -1496,7 +1496,7 b' class url(object):'
1496 """
1496 """
1497
1497
1498 _safechars = "!~*'()+"
1498 _safechars = "!~*'()+"
1499 _safepchars = "/!~*'()+"
1499 _safepchars = "/!~*'()+:"
1500 _matchscheme = re.compile(r'^[a-zA-Z0-9+.\-]+:').match
1500 _matchscheme = re.compile(r'^[a-zA-Z0-9+.\-]+:').match
1501
1501
1502 def __init__(self, path, parsequery=True, parsefragment=True):
1502 def __init__(self, path, parsequery=True, parsefragment=True):
@@ -1608,8 +1608,8 b' class url(object):'
1608
1608
1609 Examples:
1609 Examples:
1610
1610
1611 >>> str(url('http://user:pw@host:80/?foo#bar'))
1611 >>> str(url('http://user:pw@host:80/c:/bob?fo:oo#ba:ar'))
1612 'http://user:pw@host:80/?foo#bar'
1612 'http://user:pw@host:80/c:/bob?fo:oo#ba:ar'
1613 >>> str(url('http://user:pw@host:80/?foo=bar&baz=42'))
1613 >>> str(url('http://user:pw@host:80/?foo=bar&baz=42'))
1614 'http://user:pw@host:80/?foo=bar&baz=42'
1614 'http://user:pw@host:80/?foo=bar&baz=42'
1615 >>> str(url('http://user:pw@host:80/?foo=bar%3dbaz'))
1615 >>> str(url('http://user:pw@host:80/?foo=bar%3dbaz'))
@@ -219,7 +219,7 b' def test_url():'
219 >>> u
219 >>> u
220 <url scheme: 'file', path: 'f:oo/bar/baz'>
220 <url scheme: 'file', path: 'f:oo/bar/baz'>
221 >>> str(u)
221 >>> str(u)
222 'file:f%3Aoo/bar/baz'
222 'file:f:oo/bar/baz'
223 >>> u.localpath()
223 >>> u.localpath()
224 'f:oo/bar/baz'
224 'f:oo/bar/baz'
225
225
General Comments 0
You need to be logged in to leave comments. Login now