From 08f76696543dc85d2b218b743ca4418c80823136 Mon Sep 17 00:00:00 2001 From: Carsten Grohmann Date: Wed, 28 Jul 2021 21:05:34 +0200 Subject: [PATCH] Simplify code to unwind #012/LF --- OOMAnalyser.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/OOMAnalyser.py b/OOMAnalyser.py index 87348e1..fa50673 100644 --- a/OOMAnalyser.py +++ b/OOMAnalyser.py @@ -271,9 +271,7 @@ class OOMEntity(object): for line in oom_lines: if '#012' in line: - line = line.replace('#012', '\r') - expanded = line.split('\r') - lines.extend(expanded) + lines.extend(line.split('#012')) else: lines.append(line)