From a86d4e11a92b427d5f1b8709c15cd8ae6c3be6ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Czarnota?= Date: Sun, 2 Aug 2015 22:03:56 +0200 Subject: [PATCH] response.startswith should accept bytes --- ts3/protocol.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts3/protocol.py b/ts3/protocol.py index 937f5ff..7dd8800 100644 --- a/ts3/protocol.py +++ b/ts3/protocol.py @@ -131,7 +131,7 @@ class TS3Proto(): data = '' response = self._telnet.read_until(b"\n\r", self._timeout) - if not response.startswith("error"): + if not response.startswith(b"error"): # what we just got was extra data data = response response = self._telnet.read_until(b"\n\r", self._timeout)