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

Method get_flags

Lib/mailbox.py:1631–1636  ·  view source on GitHub ↗

Return as a string the flags that are set.

(self)

Source from the content-addressed store, hash-verified

1629 raise ValueError("subdir must be 'new' or 'cur': %s" % subdir)
1630
1631 def get_flags(self):
1632 """Return as a string the flags that are set."""
1633 if self._info.startswith('2,'):
1634 return self._info[2:]
1635 else:
1636 return ''
1637
1638 def set_flags(self, flags):
1639 """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