diff --git a/pylingual/control_flow_reconstruction/templates/Exception.py b/pylingual/control_flow_reconstruction/templates/Exception.py index 79be386..baca490 100644 --- a/pylingual/control_flow_reconstruction/templates/Exception.py +++ b/pylingual/control_flow_reconstruction/templates/Exception.py @@ -39,7 +39,7 @@ class Except3_11(ControlFlowTemplate): return x -@register_template(0, 0, *versions_from(3, 11)) +@register_template(0, 1, *versions_from(3, 11)) class Try3_11(ControlFlowTemplate): template = T( try_header=N("try_body"), @@ -324,7 +324,7 @@ class Except3_9(ControlFlowTemplate): return node -@register_template(0, 0, (3, 9), (3, 10)) +@register_template(0, 1, (3, 9), (3, 10)) class Try3_9(ControlFlowTemplate): template = T( try_header=~N("try_body"), diff --git a/test/Exception.py b/test/Exception.py index 06bae00..41b5dc3 100644 --- a/test/Exception.py +++ b/test/Exception.py @@ -494,7 +494,6 @@ def ad0_multiple_try_blocks(): except: print(4) -# 3.10/3.11 Try matching before TryElse def ae0_try_except_else_nested_try(): try: print(1)