MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / get_labels

Method get_labels

tools/python-3.11.9-amd64/Lib/mailbox.py:1325–1332  ·  view source on GitHub ↗

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

(self)

Source from the content-addressed store, hash-verified

1323 return io.BytesIO(self.get_bytes(key).replace(b'\n', linesep))
1324
1325 def get_labels(self):
1326 """Return a list of user-defined labels in the mailbox."""
1327 self._lookup()
1328 labels = set()
1329 for label_list in self._labels.values():
1330 labels.update(label_list)
1331 labels.difference_update(self._special_labels)
1332 return list(labels)
1333
1334 def _generate_toc(self):
1335 """Generate key-to-(start, stop) table of contents."""

Callers 4

_pre_mailbox_hookMethod · 0.95
addMethod · 0.45
__setitem__Method · 0.45
_install_messageMethod · 0.45

Calls 6

listFunction · 0.85
setFunction · 0.50
_lookupMethod · 0.45
valuesMethod · 0.45
updateMethod · 0.45
difference_updateMethod · 0.45

Tested by

no test coverage detected