Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
21
msg = objc.objc_msgSend
22
23
def
_utf8(s):
24
""
"ensure utf8 bytes"
""
25
if
not isinstance(s, bytes):
26
s = s.encode(
'utf8'
)
27
return
s
28
29
def
n(name):
30
""
"create a selector name (for ObjC methods)"
""
Callers
2
n
Function · 0.85
C
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected