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

Function decode

recipes/Python/496854_zcgipy/recipe-496854.py:66–72  ·  view source on GitHub ↗

Receives, decodes, and returns string.

(string)

Source from the content-addressed store, hash-verified

64 dictionary = dict()
65
66def decode(string):
67 'Receives, decodes, and returns string.'
68 index = string.find('%')
69 while index != -1:
70 string = string[:index] + chr(int(string[index+1:index+3], 16)) + string[index+3:]
71 index = string.find('%', index + 1)
72 return string
73
74################################################################################
75

Callers 2

exportFunction · 0.70
recipe-466293.pyFile · 0.50

Calls 1

findMethod · 0.45

Tested by

no test coverage detected