MCPcopy Create free account
hub / github.com/RustPython/RustPython / set_flags

Method set_flags

Lib/mailbox.py:1631–1633  ·  view source on GitHub ↗

Set the given flags and unset all others.

(self, flags)

Source from the content-addressed store, hash-verified

1629 return ''
1630
1631 def set_flags(self, flags):
1632 """Set the given flags and unset all others."""
1633 self._info = '2,' + ''.join(sorted(flags))
1634
1635 def add_flag(self, flag):
1636 """Set the given flag(s) without changing others."""

Callers 12

add_flagMethod · 0.95
remove_flagMethod · 0.95
test_get_MMMethod · 0.95
test_set_MMMethod · 0.95
test_get_flagsMethod · 0.95
test_flagsMethod · 0.95
test_info_and_flagsMethod · 0.95
test_maildir_to_mhMethod · 0.95
test_maildir_to_babylMethod · 0.95

Calls 2

sortedFunction · 0.85
joinMethod · 0.45

Tested by 10

test_get_MMMethod · 0.76
test_set_MMMethod · 0.76
test_get_flagsMethod · 0.76
test_flagsMethod · 0.76
test_info_and_flagsMethod · 0.76
test_maildir_to_mhMethod · 0.76
test_maildir_to_babylMethod · 0.76