[Python-checkins] CVS: python/dist/src/Lib ntpath.py,1.25,1.26

Skip Montanaro python-dev@python.org
Wed, 12 Jul 2000 18:01:06 -0700


Update of /cvsroot/python/python/dist/src/Lib
In directory slayer.i.sourceforge.net:/tmp/cvs-serv30374

Modified Files:
	ntpath.py 
Log Message:
forgot to change copy.copy(m) to m[:]


Index: ntpath.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/ntpath.py,v
retrieving revision 1.25
retrieving revision 1.26
diff -C2 -r1.25 -r1.26
*** ntpath.py	2000/07/12 16:55:57	1.25
--- ntpath.py	2000/07/13 01:01:03	1.26
***************
*** 9,14 ****
  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
--- 9,14 ----
  import stat
  import string
  
+ 
  # Normalize the case of a pathname and map slashes to backslashes.
  # Other normalizations (such as optimizing '../' away) are not done
***************
*** 159,163 ****
      "Given a list of pathnames, returns the longest common leading component"
      if not m: return ''
!     n = copy.copy(m)
      for i in range(len(n)):
          n[i] = n[i].split(os.sep)
--- 159,163 ----
      "Given a list of pathnames, returns the longest common leading component"
      if not m: return ''
!     n = m[:]
      for i in range(len(n)):
          n[i] = n[i].split(os.sep)