Skip to content

Commit

Permalink
Placate flake8's new backslash-in-parens warning
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Jun 23, 2024
1 parent 636ee6c commit 44982ac
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions loopy/transform/padding.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,9 @@ def map_kernel(self, kernel, within=lambda *args: True):
# While subst rules are not allowed in assignees, the mapper
# may perform tasks entirely unrelated to subst rules, so
# we must map assignees, too.
insn if not kernel.substitutions and not within(kernel, insn, ()) \
and not any(name in self.arg_names for name in \
insn.dependency_names()) else
self.map_instruction(kernel,
insn if not kernel.substitutions and not within(kernel, insn, ())
and not any(name in self.arg_names for name in insn.dependency_names())
else self.map_instruction(kernel,
insn.with_transformed_expressions(
lambda expr: self(expr, kernel, insn))) # noqa: B023
for insn in kernel.instructions]
Expand Down

0 comments on commit 44982ac

Please sign in to comment.