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