[Python-checkins] python/dist/src/Lib shutil.py,1.34,1.35

jlgijsbers at users.sourceforge.net jlgijsbers at users.sourceforge.net
Sat Jan 8 13:31:31 CET 2005


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv819/Lib

Modified Files:
	shutil.py 
Log Message:
Patch #1094015: 

* Use os.makedirs() instead os.mkdir(). (bug #975763)
* Use copystat() to copy directory bits (bug #1048878)


Index: shutil.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/shutil.py,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -d -r1.34 -r1.35
--- shutil.py	31 Oct 2004 12:05:31 -0000	1.34
+++ shutil.py	8 Jan 2005 12:31:29 -0000	1.35
@@ -108,7 +108,8 @@
 
     """
     names = os.listdir(src)
-    os.mkdir(dst)
+    os.makedirs(dst)
+    copystat(src, dst)
     errors = []
     for name in names:
         srcname = os.path.join(src, name)



More information about the Python-checkins mailing list