def _getTodoReason(self, todo):
        """
        Get the reason for a C{Todo}.

        If C{todo} is L{None}, return a sensible default.
        """
        if todo is None:
            return self._DEFAULT_TODO
        else:
            return todo.reason

        Get the reason for a C{Todo}.

        If C{todo} is L{None}, return a sensible default.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/trial/_dist/workerreporter.py