diff options
author | Jesse Luehrs <doy@tozt.net> | 2014-10-21 15:39:23 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2014-10-21 17:57:25 -0400 |
commit | 90baa3cf2db4b0889a02d1509c25eb0316ad78e1 (patch) | |
tree | c21d3e8e1cb42020779c6ee09720775b7ade25ef /t/__init__.py | |
parent | b353f760c7f9b9d1091f23b67ff35122c87abac3 (diff) | |
download | libvt100-python-90baa3cf2db4b0889a02d1509c25eb0316ad78e1.tar.gz libvt100-python-90baa3cf2db4b0889a02d1509c25eb0316ad78e1.zip |
fix things under python 2
Diffstat (limited to 't/__init__.py')
-rw-r--r-- | t/__init__.py | 2 |
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) |