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

Method add_flag

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

Set the given flag(s) without changing others.

(self, flag)

Source from the content-addressed store, hash-verified

1686 self.add_header('X-Status', xstatus_flags)
1687
1688 def add_flag(self, flag):
1689 """Set the given flag(s) without changing others."""
1690 self.set_flags(''.join(set(self.get_flags()) | set(flag)))
1691
1692 def remove_flag(self, flag):
1693 """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.50
joinMethod · 0.45

Tested by

no test coverage detected