]> granicus.if.org Git - python/commitdiff
Correct misspellings of ISO-8859
authorMartin Panter <vadmium+py@gmail.com>
Wed, 10 Aug 2016 05:25:16 +0000 (05:25 +0000)
committerMartin Panter <vadmium+py@gmail.com>
Wed, 10 Aug 2016 05:25:16 +0000 (05:25 +0000)
Lib/email/base64mime.py
Lib/email/quoprimime.py
Lib/email/test/test_email.py

index 4aa800026d650f33971729ba67d00bb1931547f9..61eba2bec180b75a7d094c3578365e876a53b21a 100644 (file)
@@ -166,7 +166,7 @@ def decode(s, convert_eols=None):
     decoding a text attachment.
 
     This function does not parse a full MIME header value encoded with
-    base64 (like =?iso-8895-1?b?bmloISBuaWgh?=) -- please use the high
+    base64 (like =?iso-8859-1?b?bmloISBuaWgh?=) -- please use the high
     level email.header class for that functionality.
     """
     if not s:
index 0c18a9e04efb23beb8d6089d514d0d0a577c6e40..cd818eb7686f353344ffd9bce476e0fb16940f93 100644 (file)
@@ -329,7 +329,7 @@ def header_decode(s):
     """Decode a string encoded with RFC 2045 MIME header `Q' encoding.
 
     This function does not parse a full MIME header value encoded with
-    quoted-printable (like =?iso-8895-1?q?Hello_World?=) -- please use
+    quoted-printable (like =?iso-8859-1?q?Hello_World?=) -- please use
     the high level email.header class for that functionality.
     """
     s = s.replace('_', ' ')
index 160306c5ee8cb84e3f0ce0ec0345be29ba4b080e..b6be2a2ed0493661e74c9cfcf4cb463f2388dcde 100644 (file)
@@ -1673,9 +1673,9 @@ class TestRFC2047(unittest.TestCase):
 
     def test_rfc2047_Q_invalid_digits(self):
         # issue 10004.
-        s = '=?iso-8659-1?Q?andr=e9=zz?='
+        s = '=?iso-8859-1?Q?andr=e9=zz?='
         self.assertEqual(decode_header(s),
-                        [(b'andr\xe9=zz', 'iso-8659-1')])
+                        [(b'andr\xe9=zz', 'iso-8859-1')])
 
 
 # Test the MIMEMessage class