From 23d1f77b255aeeb2aaf92ddbf8b610cf45907f9a Mon Sep 17 00:00:00 2001 From: gregorni Date: Mon, 21 Aug 2023 23:25:18 +0200 Subject: [PATCH] Formatter: Remove whitespace-line remover Removing lines only containing whitespace is superflous, such lines never get added to `tokenized_str` --- blueprintcompiler/formatter.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/blueprintcompiler/formatter.py b/blueprintcompiler/formatter.py index 55332e5..9ecc602 100644 --- a/blueprintcompiler/formatter.py +++ b/blueprintcompiler/formatter.py @@ -111,10 +111,6 @@ class Format: # else: # current_line = current_line.strip() + " " - tokenized_str = "\n".join( - ["" if s.strip() == "" else s for s in tokenized_str.splitlines()] - ) - print(tokenized_str) # TODO: Remove this when the MR is ready to be merged return tokenized_str