From fd1d400e8ba60cf578891887dbdd4da4dd121a7b Mon Sep 17 00:00:00 2001 From: JustAnotherArchivist Date: Mon, 12 Oct 2020 21:22:31 +0000 Subject: [PATCH] Preserve trailing whitespace in _raw_to_lines --- irclog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irclog.py b/irclog.py index 76cc8d6..69ccc8c 100644 --- a/irclog.py +++ b/irclog.py @@ -912,7 +912,7 @@ class WebServer: # f: iterable producing tuples (path, line) where each line has the format ' " " " " ', is a float, is one of the valid commands, and is any str # filter: function taking the line fields (path: str, ts: float, command: str, content: str) and returning whether to include the line for path, line in f: - ts, command, content = line.strip().split(' ', 2) + ts, command, content = line.removesuffix('\n').split(' ', 2) ts = float(ts) if not filter(path, ts, command, content): continue