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

Method remove_flag

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

Unset the given string flag(s) without changing others.

(self, flag)

Source from the content-addressed store, hash-verified

1764 self.set_flags(''.join(set(self.get_flags()) | set(flag)))
1765
1766 def remove_flag(self, flag):
1767 """Unset the given string flag(s) without changing others."""
1768 if 'Status' in self or 'X-Status' in self:
1769 self.set_flags(''.join(set(self.get_flags()) - set(flag)))
1770
1771 def _explain_to(self, message):
1772 """Copy mbox- or MMDF-specific state to message insofar as possible."""

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