MCPcopy
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
70def to_str(s):
71 if bytes != str:
72 if type(s) == bytes:
73 return s.decode('utf-8')
74 return s
75
76
77def inet_ntop(family, ipstr):

Callers 4

check_configFunction · 0.90
get_configFunction · 0.90
inet_ptonFunction · 0.85
pack_addrFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected