This script reads Python code from standard input and writes a revised version to standard output.
Alternatively, it may be invoked with file names as arguments.
Python scripts are usually good looking that no beautification is required.
However, from time to time, it may be necessary to alter the style to conform to changing standards.
This script converts programs in a consistent way. It abstracts the pretty presentation of the symbolic code from the process of writing it and getting it to work.
This script assumes that the input Python code is well-formed and works to begin with. If all goes well, the output Python code will work, too.
Of course, it is recommended and advised to test it fully to be sure.
What's New in This Release: [ read full changelog ]
· As a matter of style per PEP 308, parentheses are preferred around conditional expressions.
· Give the bitwise invert operator the same precedence as unary plus and unary minus.
· Index literal pool by type. (Use *repr*.)
· Never append a trailing comma to starred or double-starred arguments.