unquote_to_bytes('abc%20def') -> b'abc def'.
(string)
| 789 | _hextobyte = None |
| 790 | |
| 791 | def unquote_to_bytes(string): |
| 792 | """unquote_to_bytes('abc%20def') -> b'abc def'.""" |
| 793 | return bytes(_unquote_impl(string)) |
| 794 | |
| 795 | def _unquote_impl(string: bytes | bytearray | str) -> bytes | bytearray: |
| 796 | # Note: strings are encoded as UTF-8. This is only an issue if it contains |
no test coverage detected
searching dependent graphs…