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

Function cookie_is_encoded

21-async/mojifinder/bottle.py:2620–2622  ·  view source on GitHub ↗

Return True if the argument looks like a encoded cookie.

(data)

Source from the content-addressed store, hash-verified

2618
2619
2620def cookie_is_encoded(data):
2621 ''' Return True if the argument looks like a encoded cookie.'''
2622 return bool(data.startswith(tob('!')) and tob('?') in data)
2623
2624
2625def html_escape(string):

Callers 1

cookie_decodeFunction · 0.85

Calls 1

tobFunction · 0.85

Tested by

no test coverage detected