def set_subdir(self, subdir):
        """Set subdir to 'new' or 'cur'."""
        if subdir == 'new' or subdir == 'cur':
            self._subdir = subdir
        else:
            raise ValueError("subdir must be 'new' or 'cur': %s" % subdir)
dataset/ETHPy150Open babble/babble/include/jython/Lib/mailbox.py/MaildirMessage.set_subdir/original