MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _byte_quoter_factory

Function _byte_quoter_factory

tools/python-3.11.9-amd64/Lib/urllib/parse.py:920–921  ·  view source on GitHub ↗
(safe)

Source from the content-addressed store, hash-verified

918# Expectation: A typical program is unlikely to create more than 5 of these.
919@functools.lru_cache
920def _byte_quoter_factory(safe):
921 return _Quoter(safe).__getitem__
922
923def quote_from_bytes(bs, safe='/'):
924 """Like quote(), but accepts a bytes object rather than a str, and does

Callers 1

quote_from_bytesFunction · 0.85

Calls 1

_QuoterClass · 0.85

Tested by

no test coverage detected