berkerpeksag / astor

Python AST read/write
https://pypi.org/project/astor/
BSD 3-Clause "New" or "Revised" License
810 stars 102 forks source link

Code gen cleanup #35

Closed pmaupin closed 9 years ago

pmaupin commented 9 years ago

Berker:

I found some errors when running the code generator, so I added a couple of test cases and did some refactoring on the code generator.

This updated code works fine with the internal tests (except for the preexisting errors on 3.5) and with all code in the stdlibs from 2.6, 2.7, 3.3, 3.4, and 3.5.

Please merge this and anti8 if you think they are OK (anti8 aka rtrip is helping me find lots of issues), but wait on the pretty print -- it turns out that I have a few things to modify there.

Thanks, Pat

berkerpeksag commented 9 years ago

Thanks!