MCPcopy Index your code
hub / github.com/webpy/webpy / _get_path

Method _get_path

web/session.py:264–267  ·  view source on GitHub ↗
(self, key)

Source from the content-addressed store, hash-verified

262 self.root = root
263
264 def _get_path(self, key):
265 if os.path.sep in key:
266 raise ValueError("Bad key: %s" % repr(key))
267 return os.path.join(self.root, key)
268
269 def __contains__(self, key):
270 path = self._get_path(key)

Callers 5

__contains__Method · 0.95
__getitem__Method · 0.95
__setitem__Method · 0.95
__delitem__Method · 0.95
cleanupMethod · 0.95

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected