Don't call str() on bytes.

This commit is contained in:
Itamar Turner-Trauring 2023-04-14 11:15:47 -04:00
parent 2916984114
commit 2d81ddc297

View File

@ -92,7 +92,7 @@ def format_http_success(resp):
def format_http_error(msg, resp):
return quote_output(
"%s: %s %s\n%s" % (msg, resp.status, resp.reason,
"%s: %s %s\n%r" % (msg, resp.status, resp.reason,
resp.read()),
quotemarks=False)