Skip to content

Commit 000ad3f

Browse files
Update Doc/c-api/unicode.rst
Co-authored-by: Victor Stinner <[email protected]>
1 parent 67ad6f7 commit 000ad3f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/c-api/unicode.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -650,8 +650,8 @@ APIs:
650650
Return a mapping suitable for decoding a custom single-byte encoding.
651651
Given a Unicode string *string* of up to 256 characters representing an encoding
652652
table, returns either a compact internal mapping object or a dictionary
653-
mapping character ordinals to byte values. Raises a :exc:`TypeError` on
654-
invalid input.
653+
mapping character ordinals to byte values. Raises a :exc:`TypeError` and
654+
return ``NULL`` on invalid input.
655655
656656
.. versionadded:: 3.2
657657

0 commit comments

Comments
 (0)