From 23aa2c76805e2d068edf3ee0da1b1a9a1f68ff41 Mon Sep 17 00:00:00 2001 From: Bastian Schroll Date: Fri, 18 Oct 2019 21:10:00 +0200 Subject: [PATCH] fix skipLinesUntil() in non text mode --- boswatch/processManager.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/boswatch/processManager.py b/boswatch/processManager.py index 71232aa..9a2f4a4 100644 --- a/boswatch/processManager.py +++ b/boswatch/processManager.py @@ -107,6 +107,8 @@ class ProcessManager: @param matchText: string to search for in output """ logging.debug("skip lines till %s from output", matchText) + if not self._textMode: + matchText = bytes(matchText, "utf-8") while matchText not in self.readline(): pass