From 8851634dca72d76df847947a40603681b27de44e Mon Sep 17 00:00:00 2001 From: Min RK Date: Tue, 11 Jul 2017 12:07:34 +0200 Subject: [PATCH] cast curl debug messages to str since they come in as bytes on Python 3 --- tornado/curl_httpclient.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tornado/curl_httpclient.py b/tornado/curl_httpclient.py index eef4a17a6..8558d65c9 100644 --- a/tornado/curl_httpclient.py +++ b/tornado/curl_httpclient.py @@ -493,6 +493,7 @@ class CurlAsyncHTTPClient(AsyncHTTPClient): def _curl_debug(self, debug_type, debug_msg): debug_types = ('I', '<', '>', '<', '>') + debug_msg = native_str(debug_msg) if debug_type == 0: curl_log.debug('%s', debug_msg.strip()) elif debug_type in (1, 2): -- 2.47.2