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

Method get

suds/cache.py:341–349  ·  view source on GitHub ↗
(self, id)

Source from the content-addressed store, hash-verified

339 return 'xml'
340
341 def get(self, id):
342 try:
343 with FileCache.getf(self, id) as fp:
344 if fp is None:
345 return None
346 p = Parser()
347 return p.parse(fp)
348 except:
349 FileCache.purge(self, id)
350
351 def put(self, id, object):
352 if isinstance(object, Element):

Callers

nothing calls this directly

Calls 4

parseMethod · 0.95
ParserClass · 0.90
getfMethod · 0.45
purgeMethod · 0.45

Tested by

no test coverage detected