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

Method remove

Lib/mailbox.py:334–336  ·  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

332 return uniq
333
334 def remove(self, key):
335 """Remove the keyed message; raise KeyError if it doesn't exist."""
336 os.remove(os.path.join(self._path, self._lookup(key)))
337
338 def discard(self, key):
339 """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