Skip to content

Commit a80fc9b

Browse files
committed
update
1 parent 69c706e commit a80fc9b

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

‎Lib/test/test_email/test__header_value_parser.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3029,6 +3029,7 @@ def test_parse_message_ids_broken_ang(self):
30293029
)
30303030
self.assertEqual(message_ids.token_type, 'message-id-list')
30313031

3032+
30323033
class Test_get_parameter(TestParserMixin, TestEmailBase):
30333034

30343035
def test_rfc2231_charset_is_retyped_as_attrtext(self):
@@ -3060,6 +3061,7 @@ def test_rfc2231_charset_strips_cfws(self):
30603061
self.assertEqual(param[3][1].token_type, 'cfws')
30613062
self.assertEqual(param.charset, 'us-ascii')
30623063

3064+
30633065
@parameterize
30643066
class Test_parse_mime_parameters(TestParserMixin, TestEmailBase):
30653067

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
Fix parsing of extended email parameters when CFWS follows the charset,
2-
preventing the charset value from incorrectly including the trailing CFWS.
1+
Fix the parsing of the character set of :rfc:`2231` encoded parameters in the
2+
:mod:`email` header parser. The character set is now correctly located in
3+
the parsed value, so whitespace or a comment following it is no longer
4+
included in the parameter's character set name.

0 commit comments

Comments
 (0)