Skip to content

Commit 6d40943

Browse files
Typo fix - "mesasge" should be "message" (GH-22498)
* Correct at 2 places in email module (cherry picked from commit 9cd01ec) Co-authored-by: Hansraj Das <[email protected]>
1 parent 6dc8e0e commit 6d40943

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/email/message.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def as_string(self, unixfrom=False, maxheaderlen=0, policy=None):
141141
header. For backward compatibility reasons, if maxheaderlen is
142142
not specified it defaults to 0, so you must override it explicitly
143143
if you want a different maxheaderlen. 'policy' is passed to the
144-
Generator instance used to serialize the mesasge; if it is not
144+
Generator instance used to serialize the message; if it is not
145145
specified the policy associated with the message instance is used.
146146
147147
If the message object contains binary data that is not encoded
@@ -958,7 +958,7 @@ def as_string(self, unixfrom=False, maxheaderlen=None, policy=None):
958958
header. maxheaderlen is retained for backward compatibility with the
959959
base Message class, but defaults to None, meaning that the policy value
960960
for max_line_length controls the header maximum length. 'policy' is
961-
passed to the Generator instance used to serialize the mesasge; if it
961+
passed to the Generator instance used to serialize the message; if it
962962
is not specified the policy associated with the message instance is
963963
used.
964964
"""

0 commit comments

Comments
 (0)