Kaydet (Commit) dd8ddacd authored tarafından Guido van Rossum's avatar Guido van Rossum

Fix a typo in the mktemp -> mkstemp patch.

üst a132f6c3
...@@ -92,7 +92,7 @@ def _torgb(filename, temps): ...@@ -92,7 +92,7 @@ def _torgb(filename, temps):
if ftype is None or not table.has_key(ftype): if ftype is None or not table.has_key(ftype):
raise error, \ raise error, \
filename + ': unsupported image file type ' + `ftype` filename + ': unsupported image file type ' + `ftype`
(fd, temp) = tempfile.mktemp() (fd, temp) = tempfile.mkstemp()
os.close(fd) os.close(fd)
sts = table[ftype].copy(fname, temp) sts = table[ftype].copy(fname, temp)
if sts: if sts:
......
...@@ -92,7 +92,7 @@ def _torgb(filename, temps): ...@@ -92,7 +92,7 @@ def _torgb(filename, temps):
if ftype is None or not table.has_key(ftype): if ftype is None or not table.has_key(ftype):
raise error, \ raise error, \
filename + ': unsupported image file type ' + `ftype` filename + ': unsupported image file type ' + `ftype`
(fd, temp) = tempfile.mktemp() (fd, temp) = tempfile.mkstemp()
os.close(fd) os.close(fd)
sts = table[ftype].copy(fname, temp) sts = table[ftype].copy(fname, temp)
if sts: if sts:
......
...@@ -99,7 +99,7 @@ def _toaiff(filename, temps): ...@@ -99,7 +99,7 @@ def _toaiff(filename, temps):
if ftype is None or not ftype in table: if ftype is None or not ftype in table:
raise error, \ raise error, \
filename + ': unsupported audio file type ' + `ftype` filename + ': unsupported audio file type ' + `ftype`
(fd, temp) = tempfile.mktemp() (fd, temp) = tempfile.mkstemp()
os.close(fd) os.close(fd)
temps.append(temp) temps.append(temp)
sts = table[ftype].copy(fname, 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