From 88ba54a6f8bd103b49f83a87a4329013cc7aa0e3 Mon Sep 17 00:00:00 2001 From: da-woods Date: Thu, 8 Dec 2022 21:48:17 +0000 Subject: Fix error compiling Cython --- Cython/Compiler/FlowControl.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Cython/Compiler') 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): -- cgit v1.2.1