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

Method set_subdir

Lib/mailbox.py:1617–1622  ·  view source on GitHub ↗

Set subdir to 'new' or 'cur'.

(self, subdir)

Source from the content-addressed store, hash-verified

1615 return self._subdir
1616
1617 def set_subdir(self, subdir):
1618 """Set subdir to 'new' or 'cur'."""
1619 if subdir == 'new' or subdir == 'cur':
1620 self._subdir = subdir
1621 else:
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."""

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