def console_to_str(data):
    # type: (bytes) -> Text
    """Return a string, safe for output, of subprocess output.
    """
    return str_to_display(data, desc='Subprocess output')
Return a string, safe for output, of subprocess output.
    
product/gradle-plugin/src/main/python/pip/_internal/utils/compat.py