Browse Source

Preserve trailing whitespace in _raw_to_lines

master
JustAnotherArchivist 3 years ago
parent
commit
fd1d400e8b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      irclog.py

+ 1
- 1
irclog.py View File

@@ -912,7 +912,7 @@ class WebServer:
# f: iterable producing tuples (path, line) where each line has the format '<ts> " " <command> " " <content>', <ts> is a float, <command> is one of the valid commands, and <content> 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


Loading…
Cancel
Save