commit | 5b89840d9cf11014a4b865d79497649f74bf2866 | [log] [tgz] |
---|---|---|
author | Andrew Svetlov <andrew.svetlov@gmail.com> | Tue Dec 18 21:26:36 2012 +0200 |
committer | Andrew Svetlov <andrew.svetlov@gmail.com> | Tue Dec 18 21:26:36 2012 +0200 |
tree | d3ff6d2bce57a9f4b89356c0519b2d6eb9cda7ad | |
parent | e2303f8970ee6f30d3781ad31f76530d135a57b5 [diff] [blame] | |
parent | 737fb89dd15e4db6ef30d25963e774ae09cc49dc [diff] [blame] |
Issue #16714: use 'raise' exceptions, don't 'throw'. Patch by Serhiy Storchaka.
diff --git a/Lib/email/utils.py b/Lib/email/utils.py index 6b6d7f4..93a625c 100644 --- a/Lib/email/utils.py +++ b/Lib/email/utils.py
@@ -83,7 +83,7 @@ 'utf-8'. """ name, address = pair - # The address MUST (per RFC) be ascii, so throw a UnicodeError if it isn't. + # The address MUST (per RFC) be ascii, so raise an UnicodeError if it isn't. address.encode('ascii') if name: try: