summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorda-woods <dw-git@d-woods.co.uk>2022-12-08 21:48:17 +0000
committerda-woods <dw-git@d-woods.co.uk>2022-12-08 21:48:17 +0000
commit88ba54a6f8bd103b49f83a87a4329013cc7aa0e3 (patch)
tree6f3c82e799b6fa4de9a6cd76a3ecd12447d08dbc
parentf0fab87c193ba3acd17010cc07183583b50987b6 (diff)
downloadcython-88ba54a6f8bd103b49f83a87a4329013cc7aa0e3.tar.gz
Fix error compiling Cython
-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):