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

Function quote_string

Lib/email/_header_value_parser.py:111–113  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

109
110
111def quote_string(value):
112 escaped = make_quoted_pairs(value)
113 return f'"{escaped}"'
114
115
116# Match a RFC 2047 word, looks like =?utf-8?q?someword?=

Callers 6

__str__Method · 0.85
addr_specMethod · 0.85
addr_specMethod · 0.85
valueMethod · 0.85
__str__Method · 0.85
_fold_mime_parametersFunction · 0.85

Calls 1

make_quoted_pairsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…