mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
Fix a typo in the mktemp -> mkstemp patch.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user