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

Method get_flags

Lib/mailbox.py:427–432  ·  view source on GitHub ↗

Return as a string the standard flags that are set on the keyed message.

(self, key)

Source from the content-addressed store, hash-verified

425 self._toc[key] = new_subpath
426
427 def get_flags(self, key):
428 """Return as a string the standard flags that are set on the keyed message."""
429 info = self.get_info(key)
430 if info.startswith('2,'):
431 return info[2:]
432 return ''
433
434 def set_flags(self, key, flags: str):
435 """Set the given flags and unset all others on the keyed message."""

Callers 15

add_flagMethod · 0.95
remove_flagMethod · 0.95
test_get_MMMethod · 0.45
test_set_MMMethod · 0.45
test_get_flagsMethod · 0.45
test_set_flagsMethod · 0.45
test_add_flagMethod · 0.45
test_remove_flagMethod · 0.45
test_flagsMethod · 0.45
test_mh_to_maildirMethod · 0.45

Calls 2

get_infoMethod · 0.95
startswithMethod · 0.45

Tested by 13

test_get_MMMethod · 0.36
test_set_MMMethod · 0.36
test_get_flagsMethod · 0.36
test_set_flagsMethod · 0.36
test_add_flagMethod · 0.36
test_remove_flagMethod · 0.36
test_flagsMethod · 0.36
test_mh_to_maildirMethod · 0.36
test_mh_to_mboxmmdfMethod · 0.36
test_babyl_to_maildirMethod · 0.36