Commit 6fd08bad authored by Fred Drake's avatar Fred Drake

Do not hide a failure to create a temporary file; if it fails the work

will not have been done, and applications need to know that.  Also, do
not print a message about it; the exception is the right thing.

This closes SF bug #133717.
parent 07e6c505
......@@ -204,11 +204,7 @@ def pipeto(input, command):
def pipethrough(input, command, output):
tempname = tempfile.mktemp()
try:
temp = open(tempname, 'w')
except IOError:
print '*** Cannot create temp file', `tempname`
return
temp = open(tempname, 'w')
copyliteral(input, temp)
temp.close()
pipe = os.popen(command + ' <' + tempname, 'r')
......
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