]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
make sure to same output on python 2 and 3 1818/head
authorAkihiro Yamazaki <yamazaki@iij.ad.jp>
Mon, 5 Sep 2016 12:36:37 +0000 (21:36 +0900)
committerAkihiro Yamazaki <yamazaki@iij.ad.jp>
Mon, 5 Sep 2016 12:36:37 +0000 (21:36 +0900)
tornado/httpclient.py

index 59dcdf659a4ac3c56d6428e2c9003094d46b71e3..e4baf447952187bbb2e5b5735026f2762cbde694 100644 (file)
@@ -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)