~carstengrohmann/OOMAnalyser

c9b665b46480d7c41c029fe9cd11c53d3a167e64 — Carsten Grohmann 2 months ago db64b42
Rework extracting a block from the OOM
1 files changed, 2 insertions(+), 3 deletions(-)

M OOMAnalyser.py
M OOMAnalyser.py => OOMAnalyser.py +2 -3
@@ 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)