def _using_stdout(self):
        """
        Return whether the handler is using sys.stdout.
        """
        if WINDOWS and colorama:
            # Then self.stream is an AnsiToWin32 object.
            return self.stream.wrapped is sys.stdout

        return self.stream is sys.stdout

        Return whether the handler is using sys.stdout.
        
product/gradle-plugin/src/main/python/pip/_internal/utils/logging.py