def get_text_from_response(r):
    """
    Get a text response in a way that also works for very old request versions.

    :type r: :class:`requests.Response
    :param r: The server's response.
    """
    if hasattr(r, 'text'):
        return r.text
    c = r.content
    try:
        c = c.decode()
    except Exception:
        pass
    return c
