def discard(self, key):
        try:
            self.remove(key)
        except KeyError:
            pass
If the keyed message exists, remove it.
dataset/ETHPy150Open babble/babble/include/jython/Lib/mailbox.py/Mailbox.discard