From 6bf250aa3e8ede84d16170d95728c6488444a5a8 Mon Sep 17 00:00:00 2001 From: Fenil Gandhi Date: Mon, 19 Feb 2018 09:40:12 +0530 Subject: [PATCH] Fixed a bug with bytes encoding error --- mitmproxy/tools/console/grideditor/col_text.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mitmproxy/tools/console/grideditor/col_text.py b/mitmproxy/tools/console/grideditor/col_text.py index 325186704..576c33acc 100644 --- a/mitmproxy/tools/console/grideditor/col_text.py +++ b/mitmproxy/tools/console/grideditor/col_text.py @@ -28,7 +28,7 @@ class Column(col_bytes.Column): class EncodingMixin: def __init__(self, data, encoding_args): self.encoding_args = encoding_args - super().__init__(data.encode(*self.encoding_args)) + super().__init__(data.__str__().encode(*self.encoding_args)) def get_data(self): data = super().get_data()