convert/svn: fix pathname parsing from URL under Windows

This commit is contained in:
Patrick Mezard 2009-04-26 20:19:40 +02:00
parent a001fce5fc
commit dfb2f86779

View File

@ -159,6 +159,7 @@ def issvnurl(url):
if not '://' in url: if not '://' in url:
return False return False
proto, path = url.split('://', 1) proto, path = url.split('://', 1)
path = urllib.url2pathname(path).replace(os.sep, '/')
check = protomap.get(proto, lambda p, p2: False) check = protomap.get(proto, lambda p, p2: False)
while '/' in path: while '/' in path:
if check(path, proto): if check(path, proto):