diff options
-rw-r--r-- | Lib/mimetools.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Lib/mimetools.py b/Lib/mimetools.py index 81913bd..7cf8ad6 100644 --- a/Lib/mimetools.py +++ b/Lib/mimetools.py @@ -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') |