Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/shadowsocks/shadowsocks
/ to_str
Function
to_str
shadowsocks/common.py:70–74 ·
view source on GitHub ↗
(s)
Source
from the content-addressed store, hash-verified
68
69
70
def
to_str(s):
71
if
bytes != str:
72
if
type(s) == bytes:
73
return
s.decode(
'utf-8'
)
74
return
s
75
76
77
def
inet_ntop(family, ipstr):
Callers
4
check_config
Function · 0.90
get_config
Function · 0.90
inet_pton
Function · 0.85
pack_addr
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected