Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dd8ddac

Browse files
committed
Fix a typo in the mktemp -> mkstemp patch.
1 parent a132f6c commit dd8ddac

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

Lib/plat-irix5/torgb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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:

Lib/plat-irix6/torgb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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:

Lib/toaiff.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)