summaryrefslogtreecommitdiff
path: root/Lib/email/header.py
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-18 21:14:22 +0200
committerAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-18 21:14:22 +0200
commit7338e256fa0a303ebdfe7fe0ef65570636483918 (patch)
tree725e1137c836f706013784770f048f678ba599b1 /Lib/email/header.py
parentc590135614c2f344b3cce420edd70f56ec6ce78e (diff)
downloadcpython-7338e256fa0a303ebdfe7fe0ef65570636483918.tar.gz
Issue #16714: use 'raise' exceptions, don't 'throw'.
Patch by Serhiy Storchaka.
Diffstat (limited to 'Lib/email/header.py')
-rw-r--r--Lib/email/header.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/email/header.py b/Lib/email/header.py
index 3250d367ed..e33324ad38 100644
--- a/Lib/email/header.py
+++ b/Lib/email/header.py
@@ -280,7 +280,7 @@ class Header:
else:
s = s.decode(input_charset, errors)
# Ensure that the bytes we're storing can be decoded to the output
- # character set, otherwise an early error is thrown.
+ # character set, otherwise an early error is raised.
output_charset = charset.output_codec or 'us-ascii'
if output_charset != _charset.UNKNOWN8BIT:
try: