aboutsummaryrefslogtreecommitdiffstats
path: root/vt100
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-10-21 15:39:23 -0400
committerJesse Luehrs <doy@tozt.net>2014-10-21 17:57:25 -0400
commit90baa3cf2db4b0889a02d1509c25eb0316ad78e1 (patch)
treec21d3e8e1cb42020779c6ee09720775b7ade25ef /vt100
parentb353f760c7f9b9d1091f23b67ff35122c87abac3 (diff)
downloadlibvt100-python-90baa3cf2db4b0889a02d1509c25eb0316ad78e1.tar.gz
libvt100-python-90baa3cf2db4b0889a02d1509c25eb0316ad78e1.zip
fix things under python 2
Diffstat (limited to 'vt100')
-rw-r--r--vt100/__init__.py4
1 files changed, 2 insertions, 2 deletions
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: