MCPcopy Index your code
hub / github.com/RustPython/RustPython / unquote_to_bytes

Function unquote_to_bytes

Lib/urllib/parse.py:671–673  ·  view source on GitHub ↗

unquote_to_bytes('abc%20def') -> b'abc def'.

(string)

Source from the content-addressed store, hash-verified

669_hextobyte = None
670
671def unquote_to_bytes(string):
672 """unquote_to_bytes('abc%20def') -> b'abc def'."""
673 return bytes(_unquote_impl(string))
674
675def _unquote_impl(string: bytes | bytearray | str) -> bytes | bytearray:
676 # Note: strings are encoded as UTF-8. This is only an issue if it contains

Callers 2

data_openMethod · 0.90
_unquoteFunction · 0.85

Calls 1

_unquote_implFunction · 0.85

Tested by

no test coverage detected