From: Min RK Date: Tue, 11 Jul 2017 10:07:34 +0000 (+0200) Subject: cast curl debug messages to str X-Git-Tag: v4.5.3~1^2~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8851634dca72d76df847947a40603681b27de44e;p=thirdparty%2Ftornado.git cast curl debug messages to str since they come in as bytes on Python 3 --- 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):