pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/python-beaver/python-beaver/commit/5196789916afa184beb71a0ef86344d7580d9136

s" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/global-9c8f61f9f58ad7b2.css" /> multiline_regex_before won't work when logfile ends with empty line · python-beaver/python-beaver@5196789 · GitHub
Skip to content

Commit 5196789

Browse files
jeroenmaelbranckeJamieCressey
authored andcommitted
multiline_regex_before won't work when logfile ends with empty line
1 parent 049dbb7 commit 5196789

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

beaver/utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,8 @@ def multiline_merge(lines, current_event, re_after, re_before):
197197
"""
198198
events = []
199199
for line in lines:
200+
if line == '':
201+
break
200202
if re_before and re_before.match(line):
201203
current_event.append(line)
202204
elif re_after and current_event and re_after.match(current_event[-1]):

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy