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

Method get_flags

Lib/mailbox.py:1624–1629  ·  view source on GitHub ↗

Return as a string the flags that are set.

(self)

Source from the content-addressed store, hash-verified

1622 raise ValueError("subdir must be 'new' or 'cur': %s" % subdir)
1623
1624 def get_flags(self):
1625 """Return as a string the flags that are set."""
1626 if self._info.startswith('2,'):
1627 return self._info[2:]
1628 else:
1629 return ''
1630
1631 def set_flags(self, flags):
1632 """Set the given flags and unset all others."""

Callers 7

add_flagMethod · 0.95
remove_flagMethod · 0.95
_explain_toMethod · 0.95
test_flagsMethod · 0.95
test_info_and_flagsMethod · 0.95

Calls 1

startswithMethod · 0.45

Tested by 4

test_flagsMethod · 0.76
test_info_and_flagsMethod · 0.76