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

Function _byte_quoter_factory

Lib/urllib/parse.py:1093–1094  ·  view source on GitHub ↗
(safe)

Source from the content-addressed store, hash-verified

1091# Expectation: A typical program is unlikely to create more than 5 of these.
1092@functools.lru_cache
1093def _byte_quoter_factory(safe):
1094 return _Quoter(safe).__getitem__
1095
1096def quote_from_bytes(bs, safe='/'):
1097 """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

Used in the wild real call sites across dependent graphs

searching dependent graphs…