From 737fb89dd15e4db6ef30d25963e774ae09cc49dc Mon Sep 17 00:00:00 2001 From: Andrew Svetlov Date: Tue, 18 Dec 2012 21:14:22 +0200 Subject: Issue #16714: use 'raise' exceptions, don't 'throw'. Patch by Serhiy Storchaka. --- Lib/email/header.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/email/header.py') 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: -- cgit v1.2.1