MCPcopy Index your code
hub / github.com/RustPython/RustPython / get_info

Method get_info

Lib/mailbox.py:398–403  ·  view source on GitHub ↗

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

(self, key)

Source from the content-addressed store, hash-verified

396 return _ProxyFile(f)
397
398 def get_info(self, key):
399 """Get the keyed message's "info" as a string."""
400 subpath = self._lookup(key)
401 if self.colon in subpath:
402 return subpath.split(self.colon)[-1]
403 return ''
404
405 def set_info(self, key, info: str):
406 """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