MCPcopy 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
134def 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
141def toasciimxl(s):

Callers 1

native_pathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected