def __str__(self):
        if self.proxy:
            via = " via %s proxy %s" % (self.proxy.scheme, self.proxy.hostport,)
        else:
            via = ""
        safe_url = str(self.url)
        if hasattr(safe_url, '__safe_str__'):
            safe_url = safe_url.__safe_str__()
        return "Error opening %s%s: %s %s" % (safe_url, via, self.errcode,
                self.reason)
dataset/ETHPy150Open sassoftware/conary/conary/lib/http/http_error.py/ResponseError.__str__/original