]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
forgot to change copy.copy(m) to m[:]
authorSkip Montanaro <skip@pobox.com>
Thu, 13 Jul 2000 01:01:03 +0000 (01:01 +0000)
committerSkip Montanaro <skip@pobox.com>
Thu, 13 Jul 2000 01:01:03 +0000 (01:01 +0000)
Lib/ntpath.py

index a1fcaa90de4ec32b830e78c8a3af3127596f23ee..65e1a430096d65b0ef430098a29bcc692d9b8d61 100644 (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]