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