dflook / python-minifier

Transform Python source code into its most compact representation
MIT License
553 stars 40 forks source link

Terminalprinter #82

Closed dflook closed 1 year ago

dflook commented 1 year ago

Move token separation logic into a separate class. This simplifies a lot of the ExpressionPrinter/ModulePrinter and is much more accurate about when whitespace is not required.

As a result about 25% of modules are minified slightly more.