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

Method remove_label

Lib/mailbox.py:1933–1938  ·  view source on GitHub ↗

Remove label from the list of labels on the message.

(self, label)

Source from the content-addressed store, hash-verified

1931 raise TypeError('label must be a string: %s' % type(label))
1932
1933 def remove_label(self, label):
1934 """Remove label from the list of labels on the message."""
1935 try:
1936 self._labels.remove(label)
1937 except ValueError:
1938 pass
1939
1940 def get_visible(self):
1941 """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