[Python-checkins] python/dist/src/Lib shutil.py,1.36,1.37
birkenfeld@users.sourceforge.net
birkenfeld at users.sourceforge.net
Thu Sep 1 00:48:55 CEST 2005
Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32748/Lib
Modified Files:
shutil.py
Log Message:
patch [ 1242454 ] shutil.copytree() quits too soon after an error.
Index: shutil.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/shutil.py,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -d -r1.36 -r1.37
--- shutil.py 23 Jan 2005 12:20:15 -0000 1.36
+++ shutil.py 31 Aug 2005 22:48:45 -0000 1.37
@@ -124,6 +124,10 @@
# XXX What about devices, sockets etc.?
except (IOError, os.error), why:
errors.append((srcname, dstname, why))
+ # catch the Error from the recursive copytree so that we can
+ # continue with other files
+ except Error, err:
+ errors.extend(err.args[0])
copystat(src, dst)
if errors:
raise Error, errors
More information about the Python-checkins
mailing list