MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / tounicode

Function tounicode

interpreterInfo.py:126–131  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

124
125
126def tounicode(s):
127 if hasattr(s, "decode"):
128 if not isinstance(s, unicode_type):
129 # Depending on the platform variant we may have decode on string or not.
130 return s.decode(file_system_encoding)
131 return s
132
133
134def tobytes(s):

Callers 1

interpreterInfo.pyFile · 0.85

Calls 1

decodeMethod · 0.45

Tested by

no test coverage detected