File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ def _torgb(filename, temps):
9292 if ftype is None or not table .has_key (ftype ):
9393 raise error , \
9494 filename + ': unsupported image file type ' + `ftype`
95- (fd , temp ) = tempfile .mktemp ()
95+ (fd , temp ) = tempfile .mkstemp ()
9696 os .close (fd )
9797 sts = table [ftype ].copy (fname , temp )
9898 if sts :
Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ def _torgb(filename, temps):
9292 if ftype is None or not table .has_key (ftype ):
9393 raise error , \
9494 filename + ': unsupported image file type ' + `ftype`
95- (fd , temp ) = tempfile .mktemp ()
95+ (fd , temp ) = tempfile .mkstemp ()
9696 os .close (fd )
9797 sts = table [ftype ].copy (fname , temp )
9898 if sts :
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ def _toaiff(filename, temps):
9999 if ftype is None or not ftype in table :
100100 raise error , \
101101 filename + ': unsupported audio file type ' + `ftype`
102- (fd , temp ) = tempfile .mktemp ()
102+ (fd , temp ) = tempfile .mkstemp ()
103103 os .close (fd )
104104 temps .append (temp )
105105 sts = table [ftype ].copy (fname , temp )
You can’t perform that action at this time.
0 commit comments