MCPcopy
hub / github.com/Xyntax/POC-T / get

Method get

thirdparty/httplib2/__init__.py:702–711  ·  view source on GitHub ↗
(self, key)

Source from the content-addressed store, hash-verified

700 os.makedirs(self.cache)
701
702 def get(self, key):
703 retval = None
704 cacheFullPath = os.path.join(self.cache, self.safe(key))
705 try:
706 f = file(cacheFullPath, "rb")
707 retval = f.read()
708 f.close()
709 except IOError:
710 pass
711 return retval
712
713 def set(self, key, value):
714 cacheFullPath = os.path.join(self.cache, self.safe(key))

Callers 15

getTitleFunction · 0.80
redirectURLFunction · 0.80
IP2domainFunction · 0.80
pocFunction · 0.80
pocFunction · 0.80
pocFunction · 0.80
pocFunction · 0.80
pocFunction · 0.80
pocFunction · 0.80
pocFunction · 0.80
pocFunction · 0.80
pocFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected