Skip to content

Commit d748c22

Browse files
Un-simplify
1 parent 367bdf2 commit d748c22

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Doc/library/codecs.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,9 @@ any codec:
5656
.. function:: charmap_build(string)
5757

5858
Return a mapping suitable for decoding a custom single-byte encoding.
59-
Given a string *string* of up to 256 characters representing an encoding
60-
table, returns a dictionary mapping character ordinals to byte values.
59+
Given a :class:`str` *string* of up to 256 characters representing an
60+
encoding table, returns either a compact internal mapping object or a
61+
dictionary mapping character ordinals to byte values.
6162
Raises a :exc:`TypeError` on invalid input.
6263

6364
The full details for each codec can also be looked up directly:

0 commit comments

Comments
 (0)