Update of /cvsroot/pywin32/pywin32/Pythonwin/pywin/framework/editor
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17268/Pythonwin/pywin/framework/editor
Modified Files:
document.py
Log Message:
shutil.copy2 can throw an IOError when saving new document
Index: document.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/Pythonwin/pywin/framework/editor/document.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** document.py 20 Nov 2006 12:35:01 -0000 1.9
--- document.py 5 Jan 2007 20:44:33 -0000 1.10
***************
*** 73,77 ****
# to follow the backup.
shutil.copy2(fileName, bakFileName)
! except (os.error, NameError):
pass
try:
--- 73,77 ----
# to follow the backup.
shutil.copy2(fileName, bakFileName)
! except (os.error, NameError, IOError):
pass
try:
|