b27cdfed69
Python Class AST expects a body which is a list of ast.Expr. Force every entry to be stored as a statement. This means we'll preserve print statements. Python also doesn't construct docstrings in classes by setting a __doc__ attribute, it does it by inspecting the first ast.Expr node of the class. But this means we can remove the special handler for it. |
||
---|---|---|
.. | ||
compilers | ||
importer | ||
macros | ||
native_tests | ||
resources | ||
__init__.py | ||
test_bin.py | ||
test_lex.py | ||
test_models.py |