From: Jonatan Schlag Date: Sat, 21 Apr 2018 11:18:51 +0000 (+0200) Subject: login: also check lines for login, which do not start with a l X-Git-Url: http://git.ipfire.org/?p=nitsi.git;a=commitdiff_plain;h=946371163cc06e6399000cf225e58d50d25583f5 login: also check lines for login, which do not start with a l When we get 'alice login:' the lines do not start with an 'l' so we can not assume that all lines which start not with an 'l' are not our login line. Signed-off-by: Jonatan Schlag --- diff --git a/test.py b/test.py index f7f7c66..54d256d 100755 --- a/test.py +++ b/test.py @@ -308,11 +308,6 @@ class connection(): # Read all line till we get login: while 1: - data = self.peek() - if not data.decode() == "l": - self.log.debug("We get no l at the start") - self.log_console_line(self.readline().decode()) - # We need to use self.in_waiting because with self.con.in_waiting we get # not the complete string size = len(self.buffer) + self.in_waiting