def _getDone(self, done, undone):
if done:<EOL><INDENT>return self._getPattern(done, True)<EOL><DEDENT>if undone:<EOL><INDENT>return self._getPattern(undone, False)<EOL><DEDENT>
Parses the done|undone state.

        :done: Done marking pattern.
        :undone: Not done marking pattern.
        :returns: Pattern for done|undone or None if neither were specified.