Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/webpy/webpy
/ unicodify
Function
unicodify
web/utils.py:157–161 ·
view source on GitHub ↗
(s)
Source
from the content-addressed store, hash-verified
155
to_unicode = _unicode
156
157
def
unicodify(s):
158
if
_unicode and isinstance(s, str):
159
return
to_unicode(s)
160
else
:
161
return
s
162
163
def
getvalue(x):
164
if
hasattr(x,
"file"
) and hasattr(x,
"raw"
):
Callers
1
getvalue
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected