Update of /cvsroot/pywin32/pywin32/com/win32com/client
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26019
Modified Files:
makepy.py
Log Message:
Remove the final file before we create the temp file.
Index: makepy.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32com/client/makepy.py,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -d -r1.24 -r1.25
*** makepy.py 1 Jul 2008 00:10:42 -0000 1.24
--- makepy.py 1 Jul 2008 00:17:41 -0000 1.25
***************
*** 269,272 ****
--- 269,276 ----
# generate to a temp file (so errors don't leave a 1/2
# generated file) and one which can handle unicode!
+ try:
+ os.unlink(outputName)
+ except os.error:
+ pass
encoding = 'mbcs' # could make this a param.
fileUse = codecs.open(outputName + ".temp", "wt",
|