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

Method remove_flag

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

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

(self, flag)

Source from the content-addressed store, hash-verified

1563 self.set_flags(''.join(set(self.get_flags()) | set(flag)))
1564
1565 def remove_flag(self, flag):
1566 """Unset the given string flag(s) without changing others."""
1567 if self.get_flags():
1568 self.set_flags(''.join(set(self.get_flags()) - set(flag)))
1569
1570 def get_date(self):
1571 """Return delivery date of message, in seconds since the epoch."""

Callers

nothing calls this directly

Calls 4

get_flagsMethod · 0.95
set_flagsMethod · 0.95
setFunction · 0.50
joinMethod · 0.45

Tested by

no test coverage detected