I googled around for some kind of python pretty-printer and couldn't find such a beast, but I didn't look that hard. Pylint seemed like it would be good for finding other problems and keeping things consistent. It probably has to parse the file to check it, so I wonder if it spits out a parsed, standard-indent version.
On 5/24/07, Scott Beardsley <[EMAIL PROTECTED]> wrote: > >> The change to 4 spaces will also probably have to be done manually. > > Actually this should be easy enough to script (just need to keep track > of # of spaces on prev line vs # of spaces on current line). > > Rottenchester wrote: > > You guys might also be interested in pylint, which supposedly can > > enforce coding standards: > > Thanks, I'll check it out. I wouldn't trust a tool to do the tab > conversion. I did have to make some decisions about semantics. Which, > BTW, may have introduced semantics bugs. > > It looks like pylint just tells you if code matches the coding standard, > right? I don't see anything about actually reformatting code. > > Scott > _______________________________________________ > Sycamore-Dev mailing list > [EMAIL PROTECTED] > http://www.projectsycamore.org/ > https://tools.cernio.com/mailman/listinfo/sycamore-dev > _______________________________________________ Sycamore-Dev mailing list [EMAIL PROTECTED] http://www.projectsycamore.org/ https://tools.cernio.com/mailman/listinfo/sycamore-dev