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

Function remove_chars

module/utils.py:28–33  ·  view source on GitHub ↗

removes all chars in repl from string

(string, repl)

Source from the content-addressed store, hash-verified

26
27
28def remove_chars(string, repl):
29 """ removes all chars in repl from string"""
30 if type(string) == str:
31 return string.translate(maketrans("", ""), repl)
32 elif type(string) == unicode:
33 return string.translate(dict([(ord(s), None) for s in repl]))
34
35
36def save_path(name):

Callers 2

save_pathFunction · 0.70
utils.pyFile · 0.70

Calls 1

dictFunction · 0.85

Tested by

no test coverage detected