Show More
@@ -153,10 +153,12 b" protomap = {'http': httpcheck," | |||||
153 | def issvnurl(url): |
|
153 | def issvnurl(url): | |
154 | try: |
|
154 | try: | |
155 | proto, path = url.split('://', 1) |
|
155 | proto, path = url.split('://', 1) | |
|
156 | if proto == 'file': | |||
156 | path = urllib.url2pathname(path) |
|
157 | path = urllib.url2pathname(path) | |
157 | except ValueError: |
|
158 | except ValueError: | |
158 | proto = 'file' |
|
159 | proto = 'file' | |
159 | path = os.path.abspath(url) |
|
160 | path = os.path.abspath(url) | |
|
161 | if proto == 'file': | |||
160 | path = path.replace(os.sep, '/') |
|
162 | path = path.replace(os.sep, '/') | |
161 | check = protomap.get(proto, lambda p, p2: False) |
|
163 | check = protomap.get(proto, lambda p, p2: False) | |
162 | while '/' in path: |
|
164 | while '/' in path: |
General Comments 0
You need to be logged in to leave comments.
Login now