MCPcopy Create free account
hub / github.com/ipython/ipython / decode

Function decode

IPython/utils/py3compat.py:17–19  ·  view source on GitHub ↗
(s, encoding=None)

Source from the content-addressed store, hash-verified

15
16
17def decode(s, encoding=None):
18 encoding = encoding or DEFAULT_ENCODING
19 return s.decode(encoding, "replace")
20
21def encode(u, encoding=None):
22 encoding = encoding or DEFAULT_ENCODING

Callers 3

runMethod · 0.90
run_iptestallFunction · 0.90
cast_unicodeFunction · 0.85

Calls

no outgoing calls

Tested by 2

runMethod · 0.72
run_iptestallFunction · 0.72