MCPcopy Index your code
hub / github.com/python/cpython / unquote_to_bytes

Function unquote_to_bytes

Lib/urllib/parse.py:791–793  ·  view source on GitHub ↗

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

(string)

Source from the content-addressed store, hash-verified

789_hextobyte = None
790
791def unquote_to_bytes(string):
792 """unquote_to_bytes('abc%20def') -> b'abc def'."""
793 return bytes(_unquote_impl(string))
794
795def _unquote_impl(string: bytes | bytearray | str) -> bytes | bytearray:
796 # 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…