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

Method add_flag

Lib/mailbox.py:1769–1771  ·  view source on GitHub ↗

Set the given flag(s) without changing others.

(self, flag)

Source from the content-addressed store, hash-verified

1767 self.add_header('X-Status', xstatus_flags)
1768
1769 def add_flag(self, flag):
1770 """Set the given flag(s) without changing others."""
1771 self.set_flags(''.join(set(self.get_flags()) | set(flag)))
1772
1773 def remove_flag(self, flag):
1774 """Unset the given string flag(s) without changing others."""

Callers

nothing calls this directly

Calls 4

set_flagsMethod · 0.95
get_flagsMethod · 0.95
setFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected