MCPcopy Index your code
hub / github.com/ronreiter/interactive-tutorials / mangle

Method mangle

suds/reader.py:47–53  ·  view source on GitHub ↗

Mangle the name by hashing the I{name} and appending I{x}. @return: the mangled name.

(self, name, x)

Source from the content-addressed store, hash-verified

45 self.plugins = PluginContainer(options.plugins)
46
47 def mangle(self, name, x):
48 """
49 Mangle the name by hashing the I{name} and appending I{x}.
50 @return: the mangled name.
51 """
52 h = hashlib.sha256(name.encode('utf8')).hexdigest()
53 return '%s-%s' % (h, x)
54
55
56class DocumentReader(Reader):

Callers 2

openMethod · 0.80
openMethod · 0.80

Calls 1

encodeMethod · 0.45

Tested by

no test coverage detected