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

Method remove_flag

Lib/mailbox.py:1773–1776  ·  view source on GitHub ↗

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

(self, flag)

Source from the content-addressed store, hash-verified

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."""
1775 if 'Status' in self or 'X-Status' in self:
1776 self.set_flags(''.join(set(self.get_flags()) - set(flag)))
1777
1778 def _explain_to(self, message):
1779 """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