]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix a couple spelling errors in comments and delete redundant __len__ def.
authorR. David Murray <rdmurray@bitdance.com>
Fri, 1 Oct 2010 02:08:02 +0000 (02:08 +0000)
committerR. David Murray <rdmurray@bitdance.com>
Fri, 1 Oct 2010 02:08:02 +0000 (02:08 +0000)
Lib/email/message.py

index 520d63d7138571459d0172f66a91bf6d16739489..923b26c83de3bfa57bea6f58e17b1d310d7d4d88 100644 (file)
@@ -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.