From: Akihiro Yamazaki Date: Mon, 5 Sep 2016 12:36:37 +0000 (+0900) Subject: make sure to same output on python 2 and 3 X-Git-Tag: v4.5.0~73^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0707e94377bd01f9ffa739ec5a1441fedb00d9a5;p=thirdparty%2Ftornado.git make sure to same output on python 2 and 3 --- diff --git a/tornado/httpclient.py b/tornado/httpclient.py index 59dcdf659..e4baf4479 100644 --- a/tornado/httpclient.py +++ b/tornado/httpclient.py @@ -110,7 +110,7 @@ class AsyncHTTPClient(Configurable): def handle_response(response): if response.error: - print("Error:", response.error) + print("Error: %s" % response.error) else: print(response.body)