On Tue, Feb 3, 2009 at 6:59 AM, mdipierro <[email protected]> wrote:
>
> tidypython didn't just break all the code (including simplejson and
> markdown) but deletes docstrings and afterward it does not pass the
> pep8.py validation any better.
Now, now. I did not know PythonTidy before, but to be fair one has to
admit, that it does a remarkable job. I ran the command
find . -maxdepth 1 -name '*.py' -exec ~/PythonTidy-1.16.py {} {} \;
in the directories "gluon" and "scripts" and the command
find . -maxdepth 9 -name '*.py' -exec ~/PythonTidy-1.16.py {} {} \;
in the "examples" directory, and web2py started up ok and some quick
testing did not reveal any errors. I did not check the docstrings,
but they seem to be in place.
It is clear that such a big code-reformatting has to be double checked
using diff before committing the changes, but it gives a good start
compared to do all the editing manually. Maybe PythonTidy could also
be tweaked a bit to get more suited results.
I am just afraid that seasoned Python programmers look at the examples
and get scared away because of the currently quite unfamiliar style.
Kind regards,
Markus
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---