remove unused

This commit is contained in:
Faik Uygur
2008-11-11 12:17:14 +00:00
parent 9f64e36efc
commit 39c388e581
-12
View File
@@ -209,18 +209,6 @@ def parentpath(a, sep = os.path.sep):
def parenturi(a):
return parentpath(a, '/')
# I'm not sure how necessary this is. Ahem.
def commonprefix(l):
"""an improved version of os.path.commonprefix,
returns a list of path components"""
common = []
comps = map(splitpath, l)
for i in range(0, min(len,l)):
compi = map(lambda x: x[i], comps) # get ith slice
if same(compi):
common.append(compi[0])
return common
# but this one is necessary
def subpath(a, b):
"""Find if path a is before b in the directory tree."""