summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Cython/Compiler/FlowControl.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Cython/Compiler/FlowControl.py b/Cython/Compiler/FlowControl.py
index eba466077..d37744609 100644
--- a/Cython/Compiler/FlowControl.py
+++ b/Cython/Compiler/FlowControl.py
@@ -1004,7 +1004,8 @@ class ControlFlowAnalysis(CythonTransform):
def visit_PatternNode(self, node):
# avoid visiting anything that might be a target (since they're
# handled elsewhere)
- self.visitchildren(node, exclude=["as_targets", "target", "double_star_capture_target"])
+ self.visitchildren(node, attrs=None,
+ exclude=["as_targets", "target", "double_star_capture_target"])
return node
def visit_AssertStatNode(self, node):