MCPcopy
hub / github.com/cherrypy/cherrypy / _try_decode

Function _try_decode

cherrypy/lib/auth_basic.py:113–119  ·  view source on GitHub ↗
(subject, charsets)

Source from the content-addressed store, hash-verified

111
112
113def _try_decode(subject, charsets):
114 for charset in charsets[:-1]:
115 try:
116 return tonative(subject, charset)
117 except ValueError:
118 pass
119 return tonative(subject, charsets[-1])

Callers 1

basic_authFunction · 0.85

Calls 1

tonativeFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…