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:
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:
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)