From: Skip Montanaro Date: Thu, 13 Jul 2000 01:01:03 +0000 (+0000) Subject: forgot to change copy.copy(m) to m[:] X-Git-Tag: v2.0b1~850 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4d5d5bf5ae26fe820301ad175560192af372716c;p=thirdparty%2FPython%2Fcpython.git forgot to change copy.copy(m) to m[:] --- diff --git a/Lib/ntpath.py b/Lib/ntpath.py index a1fcaa90de4e..65e1a430096d 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]