Commit 3bc3f7a
authored
Add stub for
`_replace_charref` is defined here: https://github.com/python/cpython/blob/64fab74bd7288bfa67cd7727452febdaafed4270/Lib/html/__init__.py#L91-L115
Although it’s a private attribute we have a use case for importing it: We re-implement `html.unescape` using our own definition of `_charref`, but we don’t want to reimpliment `_replace_charref`. Example can be found [in our codebase](https://github.com/alphagov/notifications-utils/blob/1eccc101a96cf120ce7bdc71528222ebc694432b/notifications_utils/formatters.py#L161-L167).html._replace_charref from standard library1 parent 63c876f commit 3bc3f7a
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
4 | 6 | | |
| 7 | + | |
0 commit comments