[Python-checkins] Typo fix - "mesasge" should be "message" (GH-22498)
Hansraj Das
webhook-mailer at python.org
Fri Oct 2 16:22:11 EDT 2020
https://github.com/python/cpython/commit/9cd01ece78e63bf98a1d25f70d5a020adf07ca4a
commit: 9cd01ece78e63bf98a1d25f70d5a020adf07ca4a
branch: master
author: Hansraj Das <raj.das.136 at gmail.com>
committer: GitHub <noreply at github.com>
date: 2020-10-02T13:21:45-07:00
summary:
Typo fix - "mesasge" should be "message" (GH-22498)
* Correct at 2 places in email module
files:
M Lib/email/message.py
diff --git a/Lib/email/message.py b/Lib/email/message.py
index 1262602617960..3701b305532b4 100644
--- a/Lib/email/message.py
+++ b/Lib/email/message.py
@@ -141,7 +141,7 @@ def as_string(self, unixfrom=False, maxheaderlen=0, policy=None):
header. For backward compatibility reasons, if maxheaderlen is
not specified it defaults to 0, so you must override it explicitly
if you want a different maxheaderlen. 'policy' is passed to the
- Generator instance used to serialize the mesasge; if it is not
+ Generator instance used to serialize the message; if it is not
specified the policy associated with the message instance is used.
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):
header. maxheaderlen is retained for backward compatibility with the
base Message class, but defaults to None, meaning that the policy value
for max_line_length controls the header maximum length. 'policy' is
- passed to the Generator instance used to serialize the mesasge; if it
+ passed to the Generator instance used to serialize the message; if it
is not specified the policy associated with the message instance is
used.
"""
More information about the Python-checkins
mailing list