[Python-checkins] python/dist/src/Tools/idle IOBinding.py,1.8,1.9
gvanrossum@users.sourceforge.net
gvanrossum@users.sourceforge.net
Fri, 09 Aug 2002 09:37:38 -0700
- Previous message: [Python-checkins] python/dist/src/Tools/faqwiz faqwiz.py,1.26,1.27
- Next message: [Python-checkins] python/dist/src/Lib cgitb.py,1.5,1.6 mimetools.py,1.26,1.27 pipes.py,1.11,1.12 pydoc.py,1.66,1.67 toaiff.py,1.12,1.13 urllib.py,1.148,1.149
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/python/python/dist/src/Tools/idle
In directory usw-pr-cvs1:/tmp/cvs-serv22967/Tools/idle
Modified Files:
IOBinding.py
Log Message:
Massive changes from SF 589982 (tempfile.py rewrite, by Zack
Weinberg). This changes all uses of deprecated tempfile functions to
the recommended ones.
Index: IOBinding.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Tools/idle/IOBinding.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** IOBinding.py 5 Aug 2002 14:55:20 -0000 1.8
--- IOBinding.py 9 Aug 2002 16:37:36 -0000 1.9
***************
*** 281,287 ****
filename = self.filename
else:
! filename = tempfilename = tempfile.mktemp()
if not self.writefile(filename):
! os.unlink(tempfilename)
return "break"
edconf = idleconf.getsection('EditorWindow')
--- 281,289 ----
filename = self.filename
else:
! (tfd, tfn) = tempfile.mkstemp()
! os.close(tfd)
! filename = tfn
if not self.writefile(filename):
! os.unlink(tfn)
return "break"
edconf = idleconf.getsection('EditorWindow')
- Previous message: [Python-checkins] python/dist/src/Tools/faqwiz faqwiz.py,1.26,1.27
- Next message: [Python-checkins] python/dist/src/Lib cgitb.py,1.5,1.6 mimetools.py,1.26,1.27 pipes.py,1.11,1.12 pydoc.py,1.66,1.67 toaiff.py,1.12,1.13 urllib.py,1.148,1.149
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]