MCPcopy Index your code
hub / github.com/pyload/pyload / transcode

Function transcode

module/plugins/internal/misc.py:428–429  ·  view source on GitHub ↗
(value, decoding, encoding)

Source from the content-addressed store, hash-verified

426
427
428def transcode(value, decoding, encoding):
429 return value.decode(decoding).encode(encoding)
430
431
432def encode(value, encoding='utf-8', errors='backslashreplace'):

Callers 1

encodeFunction · 0.85

Calls 2

decodeMethod · 0.80
encodeMethod · 0.45

Tested by

no test coverage detected