Tsitsi19 commited on
Commit
39b34f9
·
verified ·
1 Parent(s): c67da23

Delete ast_validator.py

Browse files
Files changed (1) hide show
  1. ast_validator.py +0 -8
ast_validator.py DELETED
@@ -1,8 +0,0 @@
1
- import ast
2
-
3
- def validate_ast(code):
4
- try:
5
- ast.parse(code)
6
- return True, None
7
- except SyntaxError as e:
8
- return False, f"{e.msg} (line {e.lineno})"