From ecfa7b601955ff9586d9104b388778a86b52c89f Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Sat, 10 Dec 2022 08:47:59 -0800 Subject: [PATCH] remove_block_trailing_newline --- src/black/lines.py | 6 +----- src/black/mode.py | 1 - 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/black/lines.py b/src/black/lines.py index d961249..e9abdaa 100644 --- a/src/black/lines.py +++ b/src/black/lines.py @@ -590,11 +590,7 @@ def _maybe_empty_lines(self, current_line: Line) -> Tuple[int, int]: ): return before, 1 - if ( - Preview.remove_block_trailing_newline in current_line.mode - and self.previous_line - and self.previous_line.opens_block - ): + if self.previous_line and self.previous_line.opens_block: return 0, 0 return before, 0 diff --git a/src/black/mode.py b/src/black/mode.py index dbc45d2..a57e414 100644 --- a/src/black/mode.py +++ b/src/black/mode.py @@ -150,7 +150,6 @@ class Preview(Enum): """Individual preview style features.""" long_docstring_quotes_on_newline = auto() - remove_block_trailing_newline = auto() remove_redundant_parens = auto() string_processing = auto() skip_magic_trailing_comma_in_subscript = auto()