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 --- t/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 't/__init__.py') 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) -- cgit v1.2.3-54-g00ecf