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

Function encode

IPython/utils/py3compat.py:21–23  ·  view source on GitHub ↗
(u, encoding=None)

Source from the content-addressed store, hash-verified

19 return s.decode(encoding, "replace")
20
21def encode(u, encoding=None):
22 encoding = encoding or DEFAULT_ENCODING
23 return u.encode(encoding, "replace")
24
25
26def cast_unicode(s, encoding=None):

Callers 3

passwdFunction · 0.90
passwd_checkFunction · 0.90
cast_bytesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected