You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 01:09:52 +08:00
NT continue_stmt -> continue to match AST
This commit is contained in:
@@ -20,7 +20,7 @@ def checker(ast, in_loop, errors):
|
||||
errors.append(error_text)
|
||||
|
||||
for node in ast:
|
||||
if not in_loop and node.kind in ('continue_stmt', 'break_stmt'):
|
||||
if not in_loop and node.kind in ('continue', 'break_stmt'):
|
||||
text = str(node)
|
||||
error_text = '\n# not in loop:\n#\t' + '\n# '.join(text.split("\n"))
|
||||
errors.append(error_text)
|
||||
|
Reference in New Issue
Block a user