forgot to change copy.copy(m) to m[:]

This commit is contained in:
Skip Montanaro 2000-07-13 01:01:03 +00:00
parent 8dc19f672b
commit 4d5d5bf5ae
1 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ module as os.path.
import os
import stat
import string
import copy
# Normalize the case of a pathname and map slashes to backslashes.
# Other normalizations (such as optimizing '../' away) are not done
@ -158,7 +158,7 @@ def dirname(p):
def commonprefix(m):
"Given a list of pathnames, returns the longest common leading component"
if not m: return ''
n = copy.copy(m)
n = m[:]
for i in range(len(n)):
n[i] = n[i].split(os.sep)
prefix = n[0]