aboutsummaryrefslogtreecommitdiffstats
path: root/t/__init__.py
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 /t/__init__.py
parentb353f760c7f9b9d1091f23b67ff35122c87abac3 (diff)
downloadlibvt100-python-90baa3cf2db4b0889a02d1509c25eb0316ad78e1.tar.gz
libvt100-python-90baa3cf2db4b0889a02d1509c25eb0316ad78e1.zip
fix things under python 2
Diffstat (limited to 't/__init__.py')
-rw-r--r--t/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/__init__.py b/t/__init__.py
index 130a085..b7a4f12 100644
--- a/t/__init__.py
+++ b/t/__init__.py
@@ -7,7 +7,7 @@ class VT100Test(unittest.TestCase):
self.vt = vt100.vt100(24, 80)
def process(self, text):
- if type(text) == type(""):
+ if type(text) == type(u""):
length = len(text.encode("utf-8"))
else:
length = len(text)