diff options
author | Martin Panter <vadmium+py@gmail.com> | 2016-05-26 05:35:26 (GMT) |
---|---|---|
committer | Martin Panter <vadmium+py@gmail.com> | 2016-05-26 05:35:26 (GMT) |
commit | 46f50726a0047ae81d478c3a206f587b8f35ed08 (patch) | |
tree | 2046fa568e0abebe8f055b30fbbd4585a429a708 /Lib/email | |
parent | eb9aca3c071aab925831a389ab26816c170dc159 (diff) | |
download | cpython-46f50726a0047ae81d478c3a206f587b8f35ed08.zip cpython-46f50726a0047ae81d478c3a206f587b8f35ed08.tar.gz cpython-46f50726a0047ae81d478c3a206f587b8f35ed08.tar.bz2 |
Issue #27076: Doc, comment and tests spelling fixes
Most fixes to Doc/ and Lib/ directories by Ville Skyttä.
Diffstat (limited to 'Lib/email')
-rw-r--r-- | Lib/email/_header_value_parser.py | 2 | ||||
-rw-r--r-- | Lib/email/parser.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Lib/email/_header_value_parser.py b/Lib/email/_header_value_parser.py index a7ce30e..2226e13 100644 --- a/Lib/email/_header_value_parser.py +++ b/Lib/email/_header_value_parser.py @@ -2872,7 +2872,7 @@ def parse_content_type_header(value): _find_mime_parameters(ctype, value) return ctype ctype.append(token) - # XXX: If we really want to follow the formal grammer we should make + # XXX: If we really want to follow the formal grammar we should make # mantype and subtype specialized TokenLists here. Probably not worth it. if not value or value[0] != '/': ctype.defects.append(errors.InvalidHeaderDefect( diff --git a/Lib/email/parser.py b/Lib/email/parser.py index 8c9bc9e..555b172 100644 --- a/Lib/email/parser.py +++ b/Lib/email/parser.py @@ -23,7 +23,7 @@ class Parser: textual representation of the message. The string must be formatted as a block of RFC 2822 headers and header - continuation lines, optionally preceeded by a `Unix-from' header. The + continuation lines, optionally preceded by a `Unix-from' header. The header block is terminated either by the end of the string or by a blank line. @@ -87,7 +87,7 @@ class BytesParser: textual representation of the message. The input must be formatted as a block of RFC 2822 headers and header - continuation lines, optionally preceeded by a `Unix-from' header. The + continuation lines, optionally preceded by a `Unix-from' header. The header block is terminated either by the end of the input or by a blank line. |