[Python-checkins] python/dist/src/Lib/plat-irix6 torgb.py,1.3,1.4
gvanrossum@users.sourceforge.net
gvanrossum@users.sourceforge.net
Fri, 09 Aug 2002 09:37:37 -0700
- Previous message: [Python-checkins] python/dist/src/Lib/plat-irix5 torgb.py,1.6,1.7
- Next message: [Python-checkins] python/dist/src/Lib/test pickletester.py,1.16,1.17 test_anydbm.py,1.2,1.3 test_binhex.py,1.13,1.14 test_bsddb.py,1.11,1.12 test_commands.py,1.6,1.7 test_dumbdbm.py,1.7,1.8 test_gzip.py,1.10,1.11 test_netrc.py,1.3,1.4 test_pkg.py,1.15,1.16 test_pkgimport.py,1.6,1.7 test_uu.py,1.4,1.5 test_wave.py,1.3,1.4 test_whichdb.py,1.2,1.3
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/python/python/dist/src/Lib/plat-irix6
In directory usw-pr-cvs1:/tmp/cvs-serv22967/Lib/plat-irix6
Modified Files:
torgb.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: torgb.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/plat-irix6/torgb.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** torgb.py 12 Dec 2000 23:11:42 -0000 1.3
--- torgb.py 9 Aug 2002 16:37:35 -0000 1.4
***************
*** 71,75 ****
def _torgb(filename, temps):
if filename[-2:] == '.Z':
! fname = tempfile.mktemp()
temps.append(fname)
sts = uncompress.copy(filename, fname)
--- 71,76 ----
def _torgb(filename, temps):
if filename[-2:] == '.Z':
! (fd, fname) = tempfile.mkstemp()
! os.close(fd)
temps.append(fname)
sts = uncompress.copy(filename, fname)
***************
*** 92,96 ****
raise error, \
filename + ': unsupported image file type ' + `ftype`
! temp = tempfile.mktemp()
sts = table[ftype].copy(fname, temp)
if sts:
--- 93,98 ----
raise error, \
filename + ': unsupported image file type ' + `ftype`
! (fd, temp) = tempfile.mktemp()
! os.close(fd)
sts = table[ftype].copy(fname, temp)
if sts:
- Previous message: [Python-checkins] python/dist/src/Lib/plat-irix5 torgb.py,1.6,1.7
- Next message: [Python-checkins] python/dist/src/Lib/test pickletester.py,1.16,1.17 test_anydbm.py,1.2,1.3 test_binhex.py,1.13,1.14 test_bsddb.py,1.11,1.12 test_commands.py,1.6,1.7 test_dumbdbm.py,1.7,1.8 test_gzip.py,1.10,1.11 test_netrc.py,1.3,1.4 test_pkg.py,1.15,1.16 test_pkgimport.py,1.6,1.7 test_uu.py,1.4,1.5 test_wave.py,1.3,1.4 test_whichdb.py,1.2,1.3
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]