MCPcopy Index your code
hub / github.com/python/cpython / get_info

Method get_info

Lib/mailbox.py:405–410  ·  view source on GitHub ↗

Get the keyed message's "info" as a string.

(self, key)

Source from the content-addressed store, hash-verified

403 return _ProxyFile(f)
404
405 def get_info(self, key):
406 """Get the keyed message's "info" as a string."""
407 subpath = self._lookup(key)
408 if self.colon in subpath:
409 return subpath.split(self.colon)[-1]
410 return ''
411
412 def set_info(self, key, info: str):
413 """Set the keyed message's "info" string."""

Callers 2

get_flagsMethod · 0.95
addMethod · 0.45

Calls 2

_lookupMethod · 0.95
splitMethod · 0.45

Tested by

no test coverage detected