built-in string nesnesinden "".startswith() 'i kullan.

This commit is contained in:
Barış Metin
2005-07-01 12:41:15 +00:00
parent c8e73a5fb3
commit bdb0f4689b
+1 -1
View File
@@ -115,7 +115,7 @@ def commonprefix(l):
# but this one is necessary
def subpath(a, b):
"find if path a is before b in the directory tree"
return prefix(splitpath(a), splitpath(b))
return b.startswith(a)
def removepathprefix(prefix, path):
"remove path prefix a from b, finding the pathname rooted at a"