From 2fdf11ce21b2ccf77af1d448ed4a75f53cc49124 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 77c9537cb..9a0402b5f 100644 --- a/tornado/curl_httpclient.py +++ b/tornado/curl_httpclient.py @@ -499,6 +499,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