@@ -1188,33 +1188,33 @@ particular, the following variants typically exist:
11881188
11891189The following codecs provide bytes-to-bytes mappings.
11901190
1191- .. tabularcolumns :: |l|L|
1192-
1193- +--------------------+---------------------------+
1194- | Codec | Purpose |
1195- +====================+===========================+
1196- | base64_codec | Convert operand to MIME |
1197- | | base64 (the result always |
1198- | | includes a trailing |
1199- | | ``'\n' ``) |
1200- +--------------------+---------------------------+
1201- | bz2_codec | Compress the operand |
1202- | | using bz2 |
1203- +--------------------+---------------------------+
1204- | hex_codec | Convert operand to |
1205- | | hexadecimal |
1206- | | representation, with two |
1207- | | digits per byte |
1208- +--------------------+---------------------------+
1209- | quopri_codec | Convert operand to MIME |
1210- | | quoted printable |
1211- +--------------------+---------------------------+
1212- | uu_codec | Convert the operand using |
1213- | | uuencode |
1214- +--------------------+---------------------------+
1215- | zlib_codec | Compress the operand |
1216- | | using gzip |
1217- +--------------------+---------------------------+
1191+ .. tabularcolumns :: |l|L|L|
1192+
1193+ +--------------------+---------------------------+------------------------------+
1194+ | Codec | Purpose | Encoder/decoder |
1195+ +====================+===========================+==============================+
1196+ | base64_codec | Convert operand to MIME | :meth: ` base64.b64encode `, |
1197+ | | base64 (the result always | :meth: ` base64.b64decode ` |
1198+ | | includes a trailing | |
1199+ | | ``'\n' ``) | |
1200+ +--------------------+---------------------------+------------------------------+
1201+ | bz2_codec | Compress the operand | :meth: ` bz2.compress `, |
1202+ | | using bz2 | :meth: ` bz2.decompress ` |
1203+ +--------------------+---------------------------+------------------------------+
1204+ | hex_codec | Convert operand to | :meth: ` base64.b16encode `, |
1205+ | | hexadecimal | :meth: ` base64.b16decode ` |
1206+ | | representation, with two | |
1207+ | | digits per byte | |
1208+ +--------------------+---------------------------+------------------------------+
1209+ | quopri_codec | Convert operand to MIME | :meth: ` quopri.encodestring `, |
1210+ | | quoted printable | :meth: ` quopri.decodestring ` |
1211+ +--------------------+---------------------------+------------------------------+
1212+ | uu_codec | Convert the operand using | :meth: ` uu.encode `, |
1213+ | | uuencode | :meth: ` uu.decode ` |
1214+ +--------------------+---------------------------+------------------------------+
1215+ | zlib_codec | Compress the operand | :meth: ` zlib.compress `, |
1216+ | | using gzip | :meth: ` zlib.decompress ` |
1217+ +--------------------+---------------------------+------------------------------+
12181218
12191219The following codecs provide string-to-string mappings.
12201220
0 commit comments