Commit 299d1956 authored by Guido van Rossum's avatar Guido van Rossum

Fix a typo in the mktemp -> mkstemp patch.

parent 7d73b4c8
......@@ -92,7 +92,7 @@ def _torgb(filename, temps):
if ftype is None or not table.has_key(ftype):
raise error, \
filename + ': unsupported image file type ' + `ftype`
(fd, temp) = tempfile.mktemp()
(fd, temp) = tempfile.mkstemp()
os.close(fd)
sts = table[ftype].copy(fname, temp)
if sts:
......
......@@ -92,7 +92,7 @@ def _torgb(filename, temps):
if ftype is None or not table.has_key(ftype):
raise error, \
filename + ': unsupported image file type ' + `ftype`
(fd, temp) = tempfile.mktemp()
(fd, temp) = tempfile.mkstemp()
os.close(fd)
sts = table[ftype].copy(fname, temp)
if sts:
......
......@@ -99,7 +99,7 @@ def _toaiff(filename, temps):
if ftype is None or not ftype in table:
raise error, \
filename + ': unsupported audio file type ' + `ftype`
(fd, temp) = tempfile.mktemp()
(fd, temp) = tempfile.mkstemp()
os.close(fd)
temps.append(temp)
sts = table[ftype].copy(fname, temp)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment