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

Method remove_flag

Lib/mailbox.py:1646–1649  ·  view source on GitHub ↗

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

(self, flag)

Source from the content-addressed store, hash-verified

1644 self.set_flags(''.join(set(self.get_flags()) | set(flag)))
1645
1646 def remove_flag(self, flag):
1647 """Unset the given string flag(s) without changing others."""
1648 if self.get_flags():
1649 self.set_flags(''.join(set(self.get_flags()) - set(flag)))
1650
1651 def get_date(self):
1652 """Return delivery date of message, in seconds since the epoch."""

Callers 2

test_flagsMethod · 0.95
test_info_and_flagsMethod · 0.95

Calls 4

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

Tested by 2

test_flagsMethod · 0.76
test_info_and_flagsMethod · 0.76