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

Method putf

suds/cache.py:214–224  ·  view source on GitHub ↗
(self, id, fp)

Source from the content-addressed store, hash-verified

212 return bfr
213
214 def putf(self, id, fp):
215 try:
216 fn = self.__fn(id)
217 f = self.open(fn, 'wb')
218 f.write(fp.read())
219 fp.close()
220 f.close()
221 return open(fn, 'rb')
222 except:
223 log.debug(id, exc_info=1)
224 return fp
225
226 def get(self, id):
227 try:

Callers

nothing calls this directly

Calls 2

__fnMethod · 0.95
openMethod · 0.95

Tested by

no test coverage detected