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

Method set_flags

Lib/mailbox.py:1638–1640  ·  view source on GitHub ↗

Set the given flags and unset all others.

(self, flags)

Source from the content-addressed store, hash-verified

1636 return ''
1637
1638 def set_flags(self, flags):
1639 """Set the given flags and unset all others."""
1640 self._info = '2,' + ''.join(sorted(flags))
1641
1642 def add_flag(self, flag):
1643 """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 1

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