From 165ebad93f80cf50b3c1f9701a481191cbaae22a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thiago=20Arau=CC=81jo?= Date: Sun, 30 Jul 2017 23:45:46 -0300 Subject: [PATCH] - Fixes encoding issues. --- src/flake8/formatting/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flake8/formatting/base.py b/src/flake8/formatting/base.py index c4c67d5..8e7a60e 100644 --- a/src/flake8/formatting/base.py +++ b/src/flake8/formatting/base.py @@ -172,7 +172,7 @@ class BaseFormatter(object): if self.output_fd is not None: self.output_fd.write(output + self.newline) if self.output_fd is None or self.options.tee: - print(output) + print(output.encode('utf-8')) def write(self, line, source): """Write the line either to the output file or stdout.