[Patches] (no subject)

Fred Gansevles gansevle@cs.utwente.nl
Fri, 07 Apr 2000 15:55:15 +0200


The copytree function doesn't pass the symlinks parameter in recursicve
calls
----------------------------------------------------------------
I confirm that, to the best of my knowledge and belief, this
contribution is free of any claims of third parties under
copyright, patent or other rights or interests ("claims").  To
the extent that I have any such claims, I hereby grant to CNRI a
nonexclusive, irrevocable, royalty-free, worldwide license to
reproduce, distribute, perform and/or display publicly, prepare
derivative versions, and otherwise use this contribution as part

of the Python software and its related documentation, or any
derivative versions thereof, at no cost to CNRI or its licensed
users, and to authorize others to do so.
FAQ about legal
I acknowledge that CNRI may, at its sole discretion, decide
whether or not to incorporate this contribution in the Python
software and its related documentation.  I further grant CNRI
permission to use my name and other identifying information
provided to CNRI by me for use in connection with the Python
software and its related documentation.

----------------------------------------------------------------
Index: shutil.py
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Lib/shutil.py,v
retrieving revision 1.15
diff -c -r1.15 shutil.py
*** shutil.py	2000/02/04 15:28:41	1.15
--- shutil.py	2000/04/07 13:48:42
***************
*** 88,94 ****
                  linkto = os.readlink(srcname)
                  os.symlink(linkto, dstname)
              elif os.path.isdir(srcname):
!                 copytree(srcname, dstname)
              else:
                  copy2(srcname, dstname)
              # XXX What about devices, sockets etc.?
--- 88,94 ----
                  linkto = os.readlink(srcname)
                  os.symlink(linkto, dstname)
              elif os.path.isdir(srcname):
!                 copytree(srcname, dstname, symlinks)
              else:
                  copy2(srcname, dstname)
              # XXX What about devices, sockets etc.?