summaryrefslogtreecommitdiffstats
path: root/Lib/email
diff options
context:
space:
mode:
authorR. David Murray <rdmurray@bitdance.com>2010-12-29 16:57:24 (GMT)
committerR. David Murray <rdmurray@bitdance.com>2010-12-29 16:57:24 (GMT)
commit4c1da4c2a86769383500a10904c75e43e7ad1137 (patch)
tree027d3953c9b3a944a485b9c1a4bc50332e2bcd84 /Lib/email
parent299fa4cb21358c282991917f82e4c2f99aee370b (diff)
downloadcpython-4c1da4c2a86769383500a10904c75e43e7ad1137.zip
cpython-4c1da4c2a86769383500a10904c75e43e7ad1137.tar.gz
cpython-4c1da4c2a86769383500a10904c75e43e7ad1137.tar.bz2
Fix a comment typo and update another comment to match Python3 reality
Diffstat (limited to 'Lib/email')
-rw-r--r--Lib/email/header.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/email/header.py b/Lib/email/header.py
index 88fa80f..bb2c5ee 100644
--- a/Lib/email/header.py
+++ b/Lib/email/header.py
@@ -169,7 +169,7 @@ class Header:
charset is used both as s's initial charset and as the default for
subsequent .append() calls.
- The maximum line length can be specified explicit via maxlinelen. For
+ The maximum line length can be specified explicitly via maxlinelen. For
splitting the first line to a shorter value (to account for the field
header which isn't included in s, e.g. `Subject') pass in the name of
the field in header_name. The default maxlinelen is 78 as recommended
@@ -241,7 +241,7 @@ class Header:
constructor is used.
s may be a byte string or a Unicode string. If it is a byte string
- (i.e. isinstance(s, str) is true), then charset is the encoding of
+ (i.e. isinstance(s, str) is false), then charset is the encoding of
that byte string, and a UnicodeError will be raised if the string
cannot be decoded with that charset. If s is a Unicode string, then
charset is a hint specifying the character set of the characters in