Skip to content

Commit 0cc7bc7

Browse files
committed
Refactor helpers for PyUnicodeErrorObject.
- Unify `get_unicode` and `get_string` in a single function. - Allow to retrieve the underlying `object` attribute and its size in one round. - Use a common implementation for the following functions: - `PyUnicode{Decode,Encode}Error_GetEncoding` - `PyUnicode{Decode,Encode,Translate}Error_GetObject` - `PyUnicode{Decode,Encode,Translate}Error_{Get,Set}Reason` - `PyUnicode{Decode,Encode,Translate}Error_{Get,Set}{Start,End}`
1 parent 4331832 commit 0cc7bc7

File tree

1 file changed

+179
-113
lines changed

1 file changed

+179
-113
lines changed

0 commit comments

Comments
 (0)