From b55a4c85b4faf8e3aa8e8f24a20a2c8538b0881f Mon Sep 17 00:00:00 2001 From: Martin Holman Date: Tue, 31 Oct 2017 16:26:37 -0700 Subject: [PATCH] Python3 compat --- datadog/dogshell/wrap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datadog/dogshell/wrap.py b/datadog/dogshell/wrap.py index d87f0e591..32e08011f 100644 --- a/datadog/dogshell/wrap.py +++ b/datadog/dogshell/wrap.py @@ -65,7 +65,7 @@ def run(self): ''' for line in iter(self._out.readline, b''): if self._fwd_out is not None: - self._fwd_out.write(line) + self._fwd_out.write(line.decode(self._fwd_out.encoding)) line = line.decode('utf-8') self._out_content += line self._out.close()