From c9b665b46480d7c41c029fe9cd11c53d3a167e64 Mon Sep 17 00:00:00 2001 From: Carsten Grohmann Date: Wed, 21 Jul 2021 21:43:16 +0200 Subject: [PATCH] Rework extracting a block from the OOM --- OOMAnalyser.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/OOMAnalyser.py b/OOMAnalyser.py index a89a25f..105f571 100644 --- a/OOMAnalyser.py +++ b/OOMAnalyser.py @@ -476,8 +476,7 @@ class OOMAnalyser(object): def _extract_block_from_next_pos(self, marker): """ - Extract a block starting with the marker and add all lines with a leading space character - + Extract a block that starts with the marker and contains all lines up to the next line with ":". :rtype: str """ block = '' @@ -487,7 +486,7 @@ class OOMAnalyser(object): line = self.oom_entity.current() block += "{}\n".format(line) for line in self.oom_entity: - if not line.startswith(' '): + if ':' in line: self.oom_entity.back() break block += "{}\n".format(line)