diff options
author | Skip Montanaro <skip@pobox.com> | 2000-07-13 01:01:03 (GMT) |
---|---|---|
committer | Skip Montanaro <skip@pobox.com> | 2000-07-13 01:01:03 (GMT) |
commit | 4d5d5bf5ae26fe820301ad175560192af372716c (patch) | |
tree | 271830f91cdd4c09dcefa5ad256d36be2a47a84c /Lib/ntpath.py | |
parent | 8dc19f672b38b8ad404ad08ea3cb1eb457b2b74c (diff) | |
download | cpython-4d5d5bf5ae26fe820301ad175560192af372716c.zip cpython-4d5d5bf5ae26fe820301ad175560192af372716c.tar.gz cpython-4d5d5bf5ae26fe820301ad175560192af372716c.tar.bz2 |
forgot to change copy.copy(m) to m[:]
Diffstat (limited to 'Lib/ntpath.py')
-rw-r--r-- | Lib/ntpath.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/ntpath.py b/Lib/ntpath.py index a1fcaa9..65e1a43 100644 --- a/Lib/ntpath.py +++ b/Lib/ntpath.py @@ -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] |