MCPcopy Index your code
hub / github.com/RustPython/RustPython / remove_flag

Method remove_flag

Lib/mailbox.py:1639–1642  ·  view source on GitHub ↗

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

(self, flag)

Source from the content-addressed store, hash-verified

1637 self.set_flags(''.join(set(self.get_flags()) | set(flag)))
1638
1639 def remove_flag(self, flag):
1640 """Unset the given string flag(s) without changing others."""
1641 if self.get_flags():
1642 self.set_flags(''.join(set(self.get_flags()) - set(flag)))
1643
1644 def get_date(self):
1645 """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