From 90baa3cf2db4b0889a02d1509c25eb0316ad78e1 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Tue, 21 Oct 2014 15:39:23 -0400 Subject: fix things under python 2 --- vt100/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vt100') diff --git a/vt100/__init__.py b/vt100/__init__.py index 0f07318..a07755d 100644 --- a/vt100/__init__.py +++ b/vt100/__init__.py @@ -176,7 +176,7 @@ class vt100(object): col_end = min(max(col_end, 0), self._cols - 1) return vt100_raw.get_string_formatted( addressof(self._screen), row_start, col_start, row_end, col_end - ) + ).decode('utf-8') def get_string_plaintext(self, row_start, col_start, row_end, col_end): row_start = min(max(row_start, 0), self._rows - 1) @@ -185,7 +185,7 @@ class vt100(object): col_end = min(max(col_end, 0), self._cols - 1) return vt100_raw.get_string_plaintext( addressof(self._screen), row_start, col_start, row_end, col_end - ) + ).decode('utf-8') def cell(self, row, col): if row < 0 or row >= self._rows or col < 0 or col >= self._cols: -- cgit v1.2.3-54-g00ecf