Re: [Sycamore-Dev] Changeset 684

2007-05-24 Thread Rottenchester
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,

Re: [Sycamore-Dev] Changeset 684

2007-05-24 Thread Philip Neustrom
emacs does this really well. untabify. 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

Re: [Sycamore-Dev] Changeset 684

2007-05-24 Thread Scott Beardsley
>> 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 > enf

Re: [Sycamore-Dev] Changeset 684

2007-05-24 Thread Rottenchester
You guys might also be interested in pylint, which supposedly can enforce coding standards: http://www.logilab.org/857 On 5/24/07, Adam Dewitz <[EMAIL PROTECTED]> wrote: > I'll help. We need to come up with a plan so we don't overlap. > > > On May 24, 2007, at 9:52 AM, [EMAIL PROTECTED] wrote: >

Re: [Sycamore-Dev] Changeset 684

2007-05-24 Thread Adam Dewitz
I'll help. We need to come up with a plan so we don't overlap. On May 24, 2007, at 9:52 AM, [EMAIL PROTECTED] wrote: > Did you use a tool to do that? If not, maybe there's a "pretty > print" tool we can use to automate the changes. Unfortunately, no. Python is pretty picky about whitespace. J

Re: [Sycamore-Dev] Changeset 684

2007-05-24 Thread scott
> Did you use a tool to do that? If not, maybe there's a "pretty > print" tool we can use to automate the changes. Unfortunately, no. Python is pretty picky about whitespace. Just converting tabs to 4 spaces wouldn't have worked in most cases. I'm not above using brute force in cases like this i

Re: [Sycamore-Dev] Changeset 684

2007-05-24 Thread Rottenchester
Did you use a tool to do that? If not, maybe there's a "pretty print" tool we can use to automate the changes. On 5/24/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > awesome! > > In case you're curious, I checked in some whitespace changes[1]. > > There might be some bugs from that but it

Re: [Sycamore-Dev] Changeset 684

2007-05-24 Thread scott
> awesome! In case you're curious, I checked in some whitespace changes[1]. There might be some bugs from that but it should be pretty obvious (ie generate a traceback). The "4 spaces" rule still needs to be implemented. Scott [1] http://sycamore.devjavu.com/projects/sycamore/changeset/