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

Method remove_label

Lib/mailbox.py:1926–1931  ·  view source on GitHub ↗

Remove label from the list of labels on the message.

(self, label)

Source from the content-addressed store, hash-verified

1924 raise TypeError('label must be a string: %s' % type(label))
1925
1926 def remove_label(self, label):
1927 """Remove label from the list of labels on the message."""
1928 try:
1929 self._labels.remove(label)
1930 except ValueError:
1931 pass
1932
1933 def get_visible(self):
1934 """Return a Message representation of visible headers."""

Callers 1

test_labelsMethod · 0.95

Calls 1

removeMethod · 0.45

Tested by 1

test_labelsMethod · 0.76