Correct misspellings of ISO-8859
diff --git a/Lib/email/base64mime.py b/Lib/email/base64mime.py
index 4aa8000..61eba2b 100644
--- a/Lib/email/base64mime.py
+++ b/Lib/email/base64mime.py
@@ -166,7 +166,7 @@
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:
diff --git a/Lib/email/quoprimime.py b/Lib/email/quoprimime.py
index 0c18a9e..cd818eb 100644
--- a/Lib/email/quoprimime.py
+++ b/Lib/email/quoprimime.py
@@ -329,7 +329,7 @@
"""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('_', ' ')
diff --git a/Lib/email/test/test_email.py b/Lib/email/test/test_email.py
index 160306c..b6be2a2 100644
--- a/Lib/email/test/test_email.py
+++ b/Lib/email/test/test_email.py
@@ -1673,9 +1673,9 @@
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