1983 else: |
1983 else: |
1984 scheme = url[0] |
1984 scheme = url[0] |
1985 if scheme == "file": |
1985 if scheme == "file": |
1986 return "{0}:{1}".format(scheme, urllib.parse.quote(url[1])) |
1986 return "{0}:{1}".format(scheme, urllib.parse.quote(url[1])) |
1987 else: |
1987 else: |
1988 host, path = url[1][2:].split("/",1) |
1988 try: |
|
1989 host, path = url[1][2:].split("/", 1) |
|
1990 except ValueError: |
|
1991 host = url[1][2:] |
|
1992 path = "" |
1989 return "{0}://{1}/{2}".format(scheme, host, urllib.parse.quote(path)) |
1993 return "{0}://{1}/{2}".format(scheme, host, urllib.parse.quote(path)) |
1990 |
1994 |
1991 def svnNormalizeURL(self, url): |
1995 def svnNormalizeURL(self, url): |
1992 """ |
1996 """ |
1993 Public method to normalize a url for subversion. |
1997 Public method to normalize a url for subversion. |