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

Method remove

Lib/mailbox.py:341–343  ·  view source on GitHub ↗

Remove the keyed message; raise KeyError if it doesn't exist.

(self, key)

Source from the content-addressed store, hash-verified

339 return uniq
340
341 def remove(self, key):
342 """Remove the keyed message; raise KeyError if it doesn't exist."""
343 os.remove(os.path.join(self._path, self._lookup(key)))
344
345 def discard(self, key):
346 """If the keyed message exists, remove it."""

Callers 1

discardMethod · 0.95

Calls 3

_lookupMethod · 0.95
removeMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected