diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-04-17 05:32:47 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-04-17 05:32:47 (GMT) |
commit | 6a7b3a77b4b2be0badd24ee5f0fdbaa2e0e79c3d (patch) | |
tree | 69e2dda76d29c6ac33906e0ad2e1359c5bc8e0e4 /Lib/email | |
parent | 50dd1f7dd68ed2f526adfebd5caa342e26da4517 (diff) | |
download | cpython-6a7b3a77b4b2be0badd24ee5f0fdbaa2e0e79c3d.zip cpython-6a7b3a77b4b2be0badd24ee5f0fdbaa2e0e79c3d.tar.gz cpython-6a7b3a77b4b2be0badd24ee5f0fdbaa2e0e79c3d.tar.bz2 |
Issue #26778: Fixed "a/an/and" typos in code comment and documentation.
Diffstat (limited to 'Lib/email')
-rw-r--r-- | Lib/email/_header_value_parser.py | 6 | ||||
-rw-r--r-- | Lib/email/headerregistry.py | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Lib/email/_header_value_parser.py b/Lib/email/_header_value_parser.py index f264191..a7ce30e 100644 --- a/Lib/email/_header_value_parser.py +++ b/Lib/email/_header_value_parser.py @@ -1522,7 +1522,7 @@ def get_qp_ctext(value): This is not the RFC ctext, since we are handling nested comments in comment and unquoting quoted-pairs here. We allow anything except the '()' characters, but if we find any ASCII other than the RFC defined printable - ASCII an NonPrintableDefect is added to the token's defects list. Since + ASCII, a NonPrintableDefect is added to the token's defects list. Since quoted pairs are converted to their unquoted values, what is returned is a 'ptext' token. In this case it is a WhiteSpaceTerminal, so it's value is ' '. @@ -1537,7 +1537,7 @@ def get_qcontent(value): """qcontent = qtext / quoted-pair We allow anything except the DQUOTE character, but if we find any ASCII - other than the RFC defined printable ASCII an NonPrintableDefect is + other than the RFC defined printable ASCII, a NonPrintableDefect is added to the token's defects list. Any quoted pairs are converted to their unquoted values, so what is returned is a 'ptext' token. In this case it is a ValueTerminal. @@ -1882,7 +1882,7 @@ def get_dtext(value): obs-dtext = obs-NO-WS-CTL / quoted-pair We allow anything except the excluded characters, but if we find any - ASCII other than the RFC defined printable ASCII an NonPrintableDefect is + ASCII other than the RFC defined printable ASCII, a NonPrintableDefect is added to the token's defects list. Quoted pairs are converted to their unquoted values, so what is returned is a ptext token, in this case a ValueTerminal. If there were quoted-printables, an ObsoleteHeaderDefect is diff --git a/Lib/email/headerregistry.py b/Lib/email/headerregistry.py index 4e142ee..0fc2231 100644 --- a/Lib/email/headerregistry.py +++ b/Lib/email/headerregistry.py @@ -109,7 +109,7 @@ class Group: def __init__(self, display_name=None, addresses=None): """Create an object representing an address group. - An address group consists of a display_name followed by colon and an + An address group consists of a display_name followed by colon and a list of addresses (see Address) terminated by a semi-colon. The Group is created by specifying a display_name and a possibly empty list of Address objects. A Group can also be used to represent a single |