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

Function _has_control_character

Lib/http/cookies.py:176–180  ·  view source on GitHub ↗

Detects control characters within a value. Supports any type, as header values can be any type.

(*val)

Source from the content-addressed store, hash-verified

174
175
176def _has_control_character(*val):
177 """Detects control characters within a value.
178 Supports any type, as header values can be any type.
179 """
180 return any(_control_character_re.search(str(v)) for v in val)
181
182
183def _quote(str):

Callers 7

__setitem__Method · 0.85
setdefaultMethod · 0.85
updateMethod · 0.85
setMethod · 0.85
__setstate__Method · 0.85
js_outputMethod · 0.85
outputMethod · 0.85

Calls 3

strFunction · 0.85
anyFunction · 0.50
searchMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…