MCPcopy Index your code
hub / github.com/fluentpython/example-code-2e / _hval

Function _hval

21-async/mojifinder/bottle.py:1413–1417  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

1411
1412
1413def _hval(value):
1414 value = tonat(value)
1415 if '\n' in value or '\r' in value or '\0' in value:
1416 raise ValueError("Header value must not contain control characters: %r" % value)
1417 return value
1418
1419
1420

Callers 7

__setitem__Method · 0.85
set_headerMethod · 0.85
add_headerMethod · 0.85
headerlistMethod · 0.85
__setitem__Method · 0.85
appendMethod · 0.85
replaceMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected