X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/468ceafca571454fd279f3b428076631fdaffd3d..2189bcaac01d9b6289411a75557a23cf4a06b783:/src/black/comments.py diff --git a/src/black/comments.py b/src/black/comments.py index 2a4c254..dce83ab 100644 --- a/src/black/comments.py +++ b/src/black/comments.py @@ -270,8 +270,7 @@ def _generate_ignored_nodes_from_fmt_skip( while "\n" not in prev_sibling.prefix and prev_sibling.prev_sibling is not None: prev_sibling = prev_sibling.prev_sibling siblings.insert(0, prev_sibling) - for sibling in siblings: - yield sibling + yield from siblings elif ( parent is not None and parent.type == syms.suite and leaf.type == token.NEWLINE ):