MCPcopy Create free account
hub / github.com/ActiveState/code / decode

Function decode

recipes/Python/440641_Custom_Made_CGI_Module/recipe-440641.py:38–43  ·  view source on GitHub ↗
(string)

Source from the content-addressed store, hash-verified

36 del export, decode
37
38def decode(string):
39 index = string.find('%')
40 while index is not -1:
41 string = string[:index] + chr(int(string[index+1:index+3], 16)) + string[index+3:]
42 index = string.find('%', index + 1)
43 return string
44
45if __name__ == '__main__':
46 self()

Callers 1

exportFunction · 0.70

Calls 1

findMethod · 0.45

Tested by

no test coverage detected