Rip out all codecs that can't work in a unicode/bytes world:
base64, uu, zlib, rot_13, hex, quopri, bz2, string_escape.
However codecs.escape_encode() and codecs.escape_decode()
still exist, as they are used for pickling str8 objects
(so those two functions can go, when the str8 type is removed).
diff --git a/Doc/lib/libcodecs.tex b/Doc/lib/libcodecs.tex
index a3399fb..ee141d9 100644
--- a/Doc/lib/libcodecs.tex
+++ b/Doc/lib/libcodecs.tex
@@ -1214,22 +1214,6 @@
\begin{tableiv}{l|l|l|l}{textrm}{Codec}{Aliases}{Operand type}{Purpose}
-\lineiv{base64_codec}
- {base64, base-64}
- {byte string}
- {Convert operand to MIME base64}
-
-\lineiv{bz2_codec}
- {bz2}
- {byte string}
- {Compress the operand using bz2}
-
-\lineiv{hex_codec}
- {hex}
- {byte string}
- {Convert operand to hexadecimal representation, with two
- digits per byte}
-
\lineiv{idna}
{}
{Unicode string}
@@ -1251,34 +1235,18 @@
{Unicode string}
{Implements \rfc{3492}}
-\lineiv{quopri_codec}
- {quopri, quoted-printable, quotedprintable}
- {byte string}
- {Convert operand to MIME quoted printable}
-
\lineiv{raw_unicode_escape}
{}
{Unicode string}
{Produce a string that is suitable as raw Unicode literal in
Python source code}
-\lineiv{rot_13}
- {rot13}
- {Unicode string}
- {Returns the Caesar-cypher encryption of the operand}
-
-\lineiv{string_escape}
- {}
- {byte string}
- {Produce a string that is suitable as string literal in
- Python source code}
-
\lineiv{undefined}
{}
{any}
{Raise an exception for all conversions. Can be used as the
system encoding if no automatic coercion between byte and
- Unicode strings is desired.}
+ Unicode strings is desired.}
\lineiv{unicode_escape}
{}
@@ -1290,17 +1258,6 @@
{}
{Unicode string}
{Return the internal representation of the operand}
-
-\lineiv{uu_codec}
- {uu}
- {byte string}
- {Convert the operand using uuencode}
-
-\lineiv{zlib_codec}
- {zip, zlib}
- {byte string}
- {Compress the operand using gzip}
-
\end{tableiv}
\versionadded[The \code{idna} and \code{punycode} encodings]{2.3}