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

Function quote_string

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

Source from the content-addressed store, hash-verified

102
103
104def quote_string(value):
105 escaped = make_quoted_pairs(value)
106 return f'"{escaped}"'
107
108
109# 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