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

Method get_labels

Lib/mailbox.py:1399–1406  ·  view source on GitHub ↗

Return a list of user-defined labels in the mailbox.

(self)

Source from the content-addressed store, hash-verified

1397 return io.BytesIO(self.get_bytes(key).replace(b'\n', linesep))
1398
1399 def get_labels(self):
1400 """Return a list of user-defined labels in the mailbox."""
1401 self._lookup()
1402 labels = set()
1403 for label_list in self._labels.values():
1404 labels.update(label_list)
1405 labels.difference_update(self._special_labels)
1406 return list(labels)
1407
1408 def _generate_toc(self):
1409 """Generate key-to-(start, stop) table of contents."""

Callers 8

_pre_mailbox_hookMethod · 0.95
addMethod · 0.45
__setitem__Method · 0.45
_install_messageMethod · 0.45
test_labelsMethod · 0.45
test_maildir_to_babylMethod · 0.45
test_mh_to_babylMethod · 0.45

Calls 6

setFunction · 0.85
listClass · 0.85
_lookupMethod · 0.45
valuesMethod · 0.45
updateMethod · 0.45
difference_updateMethod · 0.45

Tested by 4

test_labelsMethod · 0.36
test_maildir_to_babylMethod · 0.36
test_mh_to_babylMethod · 0.36