def capstdout(self) -> str:
        """Return captured text from stdout, if capturing is enabled.

        .. versionadded:: 3.0
        """
        return "".join(
            content for (prefix, content) in self.get_sections("Captured stdout")
        )
Return captured text from stdout, if capturing is enabled.

        .. versionadded:: 3.0
        
src/_pytest/reports.py