Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/fabioz/PyDev.Debugger
/ tobytes
Function
tobytes
interpreterInfo.py:134–138 ·
view source on GitHub ↗
(s)
Source
from the content-addressed store, hash-verified
132
133
134
def
tobytes(s):
135
if
hasattr(s,
"encode"
):
136
if
not isinstance(s, bytes_type):
137
return
s.encode(file_system_encoding)
138
return
s
139
140
141
def
toasciimxl(s):
Callers
1
native_path
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected