On Tue, Sep 10, 2019 at 2:03 AM Edward K. Ream <[email protected]> wrote:

> [The black commands] don't work, and can't be made to work reliably...

Heh.  This statement is pretty much totally false.

*Both *Leo's black and beautifier commands must munge Leo's syntax.  The
black commands must "sanitize" Leo's syntax before passing the result to
black.  For the beautifier commands, this sanitation is needed only to
compare the "before" and "after" ast (parse) trees.

In short, the black commands are coming out of the attic.  I won't blacken
Leo's sources, but I will use the black commands as test bed for the
revised beautify commands.

Edward

P.S. Testing last night revealed that the beautifier commands presently
fail some of the "pet peeves
<https://www.python.org/dev/peps/pep-0008/#pet-peeves>" discussed in pep8
<https://www.python.org/dev/peps/pep-0008/>.  These must be fixed before I
can recommend beautify-tree.

EKR

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS3XxTsJxZCc_Tf6pJgFN0OeeA6yXKEzr5VY%2Bm8ebCSeJA%40mail.gmail.com.

Reply via email to