summaryrefslogtreecommitdiffstats
path: root/Lib/email
diff options
context:
space:
mode:
authorR. David Murray <rdmurray@bitdance.com>2010-10-01 02:08:02 (GMT)
committerR. David Murray <rdmurray@bitdance.com>2010-10-01 02:08:02 (GMT)
commitd2c310f0b7c3860cfedf1724d1005aca2ee7b852 (patch)
treeb39b071f46a35e6ddd4e3a04b6a83eaacfda41a2 /Lib/email
parent0f476d49f8d4aa84210392bf13b59afc67b32b31 (diff)
downloadcpython-d2c310f0b7c3860cfedf1724d1005aca2ee7b852.zip
cpython-d2c310f0b7c3860cfedf1724d1005aca2ee7b852.tar.gz
cpython-d2c310f0b7c3860cfedf1724d1005aca2ee7b852.tar.bz2
Fix a couple spelling errors in comments and delete redundant __len__ def.
Diffstat (limited to 'Lib/email')
-rw-r--r--Lib/email/message.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/Lib/email/message.py b/Lib/email/message.py
index 520d63d..923b26c 100644
--- a/Lib/email/message.py
+++ b/Lib/email/message.py
@@ -98,7 +98,7 @@ class Message:
objects, otherwise it is a string.
Message objects implement part of the `mapping' interface, which assumes
- there is exactly one occurrance of the header per message. Some headers
+ there is exactly one occurrence of the header per message. Some headers
do in fact appear multiple times (e.g. Received) and for those headers,
you must use the explicit API to set or get all the headers. Not all of
the mapping methods are implemented.
@@ -290,7 +290,7 @@ class Message:
Return None if the header is missing instead of raising an exception.
Note that if the header appeared multiple times, exactly which
- occurrance gets returned is undefined. Use get_all() to get all
+ occurrence gets returned is undefined. Use get_all() to get all
the values matching a header field name.
"""
return self.get(name)
@@ -322,9 +322,6 @@ class Message:
for field, value in self._headers:
yield field
- def __len__(self):
- return len(self._headers)
-
def keys(self):
"""Return a list of all the message's header field names.