diff --git a/bin/deltalogcat.py b/bin/deltalogcat.py index 267bdf23ad32412e96070aaed950c215b513ad28..2bbc3b8cfb9b4dc7aa38f2d2fef723fcc5b625af 100755 --- a/bin/deltalogcat.py +++ b/bin/deltalogcat.py @@ -34,13 +34,6 @@ NODES = { } -def getlastline(fname): - """Using mmap to return a copy of the last line of a file""" - with open(fname) as source: - mapping = mmap.mmap(source.fileno(), 0, prot=mmap.PROT_READ) - return mapping[mapping.rfind(b'\n', 0, -1)+1:] - - def sleep(start_time): """After hard work, take a nap for the rest of the second""" current_time = time.perf_counter() diff --git a/bin/deltalogparse.py b/bin/deltalogparse.py index e5cc9315178d96a328ef2546ad3369aaf26716f2..b3d059e5915f2623862b7c5fa79a72da7903db20 100755 --- a/bin/deltalogparse.py +++ b/bin/deltalogparse.py @@ -55,7 +55,7 @@ rgx_redacted = re.compile( r'userPassword' r'):') -rgx_attr_key = re.compile(r'^(?P<key>.*?)(?P<delimiter>:[=+-:]? ?)') +rgx_attr_key = re.compile(r'^(?P<key>.*?)(?P<delimiter>:[-+=#] )') def lock(lock_file):