Show More
@@ -1875,6 +1875,11 b' class url(object):' | |||||
1875 | return path |
|
1875 | return path | |
1876 | return self._origpath |
|
1876 | return self._origpath | |
1877 |
|
1877 | |||
|
1878 | def islocal(self): | |||
|
1879 | '''whether localpath will return something that posixfile can open''' | |||
|
1880 | return (not self.scheme or self.scheme == 'file' | |||
|
1881 | or self.scheme == 'bundle') | |||
|
1882 | ||||
1878 | def hasscheme(path): |
|
1883 | def hasscheme(path): | |
1879 | return bool(url(path).scheme) |
|
1884 | return bool(url(path).scheme) | |
1880 |
|
1885 |
General Comments 0
You need to be logged in to leave comments.
Login now