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

Method remove_sequence

Lib/mailbox.py:1860–1865  ·  view source on GitHub ↗

Remove sequence from the list of sequences including the message.

(self, sequence)

Source from the content-addressed store, hash-verified

1858 raise TypeError('sequence type must be str: %s' % type(sequence))
1859
1860 def remove_sequence(self, sequence):
1861 """Remove sequence from the list of sequences including the message."""
1862 try:
1863 self._sequences.remove(sequence)
1864 except ValueError:
1865 pass
1866
1867 def _explain_to(self, message):
1868 """Copy MH-specific state to message insofar as possible."""

Callers 1

test_sequencesMethod · 0.95

Calls 1

removeMethod · 0.45

Tested by 1

test_sequencesMethod · 0.76