MCPcopy
hub / github.com/pyload/pyload / decode

Function decode

module/utils.py:20–25  ·  view source on GitHub ↗

decode string with utf if possible

(string)

Source from the content-addressed store, hash-verified

18
19
20def decode(string):
21 """ decode string with utf if possible """
22 try:
23 return string.decode("utf8", "replace")
24 except:
25 return string
26
27
28def remove_chars(string, repl):

Callers 6

renderFooterMethod · 0.90
__init__Method · 0.90
add_packageFunction · 0.90
load_configFunction · 0.90
save_configFunction · 0.90
save_joinFunction · 0.70

Calls 1

decodeMethod · 0.80

Tested by

no test coverage detected