summaryrefslogtreecommitdiffstats
path: root/Lib/mimetools.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/mimetools.py')
-rw-r--r--Lib/mimetools.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/Lib/mimetools.py b/Lib/mimetools.py
index 0553989..0112f48 100644
--- a/Lib/mimetools.py
+++ b/Lib/mimetools.py
@@ -162,8 +162,7 @@ def decode(input, output, encoding):
if encoding in decodetab:
pipethrough(input, decodetab[encoding], output)
else:
- raise ValueError, \
- 'unknown Content-Transfer-Encoding: %s' % encoding
+ raise ValueError('unknown Content-Transfer-Encoding: %s' % encoding)
def encode(input, output, encoding):
"""Encode common content-transfer-encodings (base64, quopri, uuencode)."""
@@ -181,8 +180,7 @@ def encode(input, output, encoding):
if encoding in encodetab:
pipethrough(input, encodetab[encoding], output)
else:
- raise ValueError, \
- 'unknown Content-Transfer-Encoding: %s' % encoding
+ raise ValueError('unknown Content-Transfer-Encoding: %s' % encoding)
# The following is no longer used for standard encodings