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

Function _utf8

IPython/terminal/pt_inputhooks/osx.py:23–27  ·  view source on GitHub ↗

ensure utf8 bytes

(s)

Source from the content-addressed store, hash-verified

21msg = objc.objc_msgSend
22
23def _utf8(s):
24 """ensure utf8 bytes"""
25 if not isinstance(s, bytes):
26 s = s.encode('utf8')
27 return s
28
29def n(name):
30 """create a selector name (for ObjC methods)"""

Callers 2

nFunction · 0.85
CFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected