MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / decode

Method decode

suds/sax/enc.py:78–89  ·  view source on GitHub ↗

Decode special characters encodings found in string I{s}. @param s: A string to decode. @type s: str @return: The decoded string. @rtype: str

(self, s)

Source from the content-addressed store, hash-verified

76 return s
77
78 def decode(self, s):
79 """
80 Decode special characters encodings found in string I{s}.
81 @param s: A string to decode.
82 @type s: str
83 @return: The decoded string.
84 @rtype: str
85 """
86 if isinstance(s, str) and '&' in s:
87 for x in self.decodings:
88 s = s.replace(x[0], x[1])
89 return s

Callers 4

locationMethod · 0.80
smart_strFunction · 0.80
addcredentialsMethod · 0.80
unescapeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected