r1595'de yaptığımı geri alıyorum. Böylesi daha tutarlı gözüktü gözüme...
This commit is contained in:
+1
-1
@@ -115,7 +115,7 @@ def commonprefix(l):
|
|||||||
# but this one is necessary
|
# but this one is necessary
|
||||||
def subpath(a, b):
|
def subpath(a, b):
|
||||||
"find if path a is before b in the directory tree"
|
"find if path a is before b in the directory tree"
|
||||||
return b.startswith(a)
|
return prefix(splitpath(a), splitpath(b))
|
||||||
|
|
||||||
def removepathprefix(prefix, path):
|
def removepathprefix(prefix, path):
|
||||||
"remove path prefix a from b, finding the pathname rooted at a"
|
"remove path prefix a from b, finding the pathname rooted at a"
|
||||||
|
|||||||
Reference in New Issue
Block a user