Skip to content

Commit 6b645d5

Browse files
committed
Fix disaster bug in truncated_trees_match
1 parent c4082c7 commit 6b645d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/main/text.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ def check(self):
515515

516516
def truncated_trees_match(self, input_tree, program_tree):
517517
input_tree = ast.Module(
518-
body=input_tree.body[len(program_tree.body):],
518+
body=input_tree.body[:len(program_tree.body)],
519519
type_ignores=[],
520520
)
521521
return is_ast_like(input_tree, program_tree)

0 commit comments

Comments
 (0)