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

Method set_subdir

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

Set subdir to 'new' or 'cur'.

(self, subdir)

Source from the content-addressed store, hash-verified

1622 return self._subdir
1623
1624 def set_subdir(self, subdir):
1625 """Set subdir to 'new' or 'cur'."""
1626 if subdir == 'new' or subdir == 'cur':
1627 self._subdir = subdir
1628 else:
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."""

Callers 11

get_messageMethod · 0.95
test_add_MMMethod · 0.95
test_get_MMMethod · 0.95
test_subdirMethod · 0.95
_explain_toMethod · 0.80
_explain_toMethod · 0.80
_explain_toMethod · 0.80
_explain_toMethod · 0.80

Calls

no outgoing calls

Tested by 6

test_add_MMMethod · 0.76
test_get_MMMethod · 0.76
test_subdirMethod · 0.76