Re: Need help in refactoring my python script

2009-08-08 Thread MRAB
n179911 wrote: I have a python script which process a file line by line, if the line matches a regex, it calls a function to handle it. My question is is there a better write to refactor my script. The script works, but as it is, i need to keep indent to the right of the editor as I add more and

Re: Need help in refactoring my python script

2009-08-08 Thread Peter Otten
n179911 wrote: > I have a python script which process a file line by line, if the line > matches a regex, it calls a function to handle it. > > My question is is there a better write to refactor my script. The > script works, but as it is, i need to keep indent to the right of the > editor as I a