From: James Addison Date: Thu, 4 Feb 2021 17:45:45 +0000 (+0000) Subject: Simplification: only use special-case token retrieval logic when magic trailing comma... X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/829331a8777aa758c6fc2a5032d38d8fbb5b5ac6?ds=inline Simplification: only use special-case token retrieval logic when magic trailing comma is present --- diff --git a/src/black/__init__.py b/src/black/__init__.py index 7f727b1..56f180a 100644 --- a/src/black/__init__.py +++ b/src/black/__init__.py @@ -6632,7 +6632,7 @@ def can_omit_invisible_parens( penultimate = line.leaves[-2] last = line.leaves[-1] - if line.should_split or line.magic_trailing_comma: + if line.magic_trailing_comma: try: penultimate, last = last_two_except(line.leaves, omit=omit_on_explode) except LookupError: