aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-09-15 00:41:34 -0400
committerJesse Luehrs <doy@tozt.net>2014-09-15 00:41:34 -0400
commit33d96c5143da76252532da5f02fe96ab2a82732e (patch)
tree25b79a7dec58de334004f4eea43fc58322a78f71
parent4b1768723e1233afede7346c688103d14391cb7a (diff)
downloadpython-termcast-server-33d96c5143da76252532da5f02fe96ab2a82732e.tar.gz
python-termcast-server-33d96c5143da76252532da5f02fe96ab2a82732e.zip
this needs to be a byte string
-rw-r--r--termcast.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/termcast.py b/termcast.py
index da0f5ce..1514fd9 100644
--- a/termcast.py
+++ b/termcast.py
@@ -12,7 +12,7 @@ class Handler(object):
def process(self, data):
self.buf += data
- clear = self.buf.rfind("\033[2J")
+ clear = self.buf.rfind(b"\033[2J")
if clear != -1:
self.buf = self.buf[clear + 4:]
self.vt.process(data)